1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

Add config files for autmatic formatting

This commit is contained in:
Manu 2022-08-15 07:10:44 +02:00 committed by yfprojects
parent 94e76644c4
commit 7c97f79b31
4 changed files with 21 additions and 2 deletions

View file

@ -91,7 +91,10 @@ jobs:
run: |
pip install .
pip install -r requirements.d/dev.txt
- name: Run Flake8
run: flake8 --ignore=E121,E123,E126,E226,E24,E704,W503,W504
- name: Test formatting with Flake8, isort and Black
run: |
flake8
isort --check-only .
black --check .
# - name: Run PyLint (info only)
# run: pylint --rcfile=setup.cfg src --exit-zero

13
pyproject.toml Normal file
View file

@ -0,0 +1,13 @@
[tool.black]
line-length = 120
skip-string-normalization = true
target-version = ['py39']
include = "src/vorta/.*.py$"
[tool.isort]
profile = "black"
line_length = 120
skip_gitignore = true
multi_line_output = 3
lines_between_sections = 0
src_paths = ["src", "tests"]

View file

@ -1,5 +1,7 @@
black
coverage
flake8
isort
macholib
pyinstaller
pylint

View file

@ -76,6 +76,7 @@ relative_files = true
[flake8]
ignore =
max-line-length = 120
extend-ignore = E203,E121,E123,E126,E226,E24,E704,W503,W504
exclude =
build,dist,.git,.idea,.cache,.tox,.eggs,
./src/vorta/__init__.py,.direnv