mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
f0a5a36275
Adds ruff replacing isort. Ruff comes with all flake8 rules and additional rules for print statements. * .github/workflows/test.yml : Replace isort with ruff in comment * .editorconfig : Update `yml` config to apply to all yaml files. * Makefile (lint): Run ruff, remove isort * .pre-commit-config.yaml : Remove isort, run ruff * pyproject.toml : Configure ruff. Remove isort config. * requirements.d/dev.txt : Add ruff, remove isort * setup.cfg : Extend flake8 file ignore * src/vorta/__main__.py : Add *noqa* for print statement.
14 lines
280 B
TOML
14 lines
280 B
TOML
[tool.black]
|
|
line-length = 120
|
|
skip-string-normalization = true
|
|
target-version = ['py39']
|
|
include = "(src/vorta/|tests).*.py$"
|
|
|
|
[build-system]
|
|
requires = ["setuptools"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[tool.ruff]
|
|
select = ["T", "I"]
|
|
exclude = ["package"]
|
|
fixable = ["I"]
|