mirror of
https://github.com/borgbase/vorta
synced 2025-03-12 07:09:37 +00:00
Add config files for autmatic formatting
This commit is contained in:
parent
94e76644c4
commit
7c97f79b31
4 changed files with 21 additions and 2 deletions
7
.github/workflows/test.yml
vendored
7
.github/workflows/test.yml
vendored
|
@ -91,7 +91,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install .
|
pip install .
|
||||||
pip install -r requirements.d/dev.txt
|
pip install -r requirements.d/dev.txt
|
||||||
- name: Run Flake8
|
- name: Test formatting with Flake8, isort and Black
|
||||||
run: flake8 --ignore=E121,E123,E126,E226,E24,E704,W503,W504
|
run: |
|
||||||
|
flake8
|
||||||
|
isort --check-only .
|
||||||
|
black --check .
|
||||||
# - name: Run PyLint (info only)
|
# - name: Run PyLint (info only)
|
||||||
# run: pylint --rcfile=setup.cfg src --exit-zero
|
# run: pylint --rcfile=setup.cfg src --exit-zero
|
||||||
|
|
13
pyproject.toml
Normal file
13
pyproject.toml
Normal 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"]
|
|
@ -1,5 +1,7 @@
|
||||||
|
black
|
||||||
coverage
|
coverage
|
||||||
flake8
|
flake8
|
||||||
|
isort
|
||||||
macholib
|
macholib
|
||||||
pyinstaller
|
pyinstaller
|
||||||
pylint
|
pylint
|
||||||
|
|
|
@ -76,6 +76,7 @@ relative_files = true
|
||||||
[flake8]
|
[flake8]
|
||||||
ignore =
|
ignore =
|
||||||
max-line-length = 120
|
max-line-length = 120
|
||||||
|
extend-ignore = E203,E121,E123,E126,E226,E24,E704,W503,W504
|
||||||
exclude =
|
exclude =
|
||||||
build,dist,.git,.idea,.cache,.tox,.eggs,
|
build,dist,.git,.idea,.cache,.tox,.eggs,
|
||||||
./src/vorta/__init__.py,.direnv
|
./src/vorta/__init__.py,.direnv
|
||||||
|
|
Loading…
Add table
Reference in a new issue