mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
add flake8 style checking
This commit is contained in:
parent
4b339f5d69
commit
2a2362fc2f
2 changed files with 14 additions and 3 deletions
10
setup.cfg
10
setup.cfg
|
@ -2,5 +2,11 @@
|
||||||
python_files = testsuite/*.py
|
python_files = testsuite/*.py
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
# please note that the values are adjusted so that they do not cause failures
|
||||||
exclude = build,dist,.git,.idea,.cache,.tox
|
# with existing code. if you want to change them, you should first fix all
|
||||||
|
# flake8 failures that appear with your change.
|
||||||
|
ignore = E122,E123,E125,E126,E127,E128,E226,E402,F401,F811
|
||||||
|
# line length long term target: 120
|
||||||
|
max-line-length = 255
|
||||||
|
exclude = build,dist,.git,.idea,.cache,.tox,docs/conf.py
|
||||||
|
|
||||||
|
|
7
tox.ini
7
tox.ini
|
@ -2,7 +2,7 @@
|
||||||
# fakeroot -u tox --recreate
|
# fakeroot -u tox --recreate
|
||||||
|
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py{34,35}
|
envlist = py{34,35},flake8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
# Change dir to avoid import problem for cython code. The directory does
|
# Change dir to avoid import problem for cython code. The directory does
|
||||||
|
@ -14,3 +14,8 @@ deps =
|
||||||
commands = py.test --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
commands = py.test --cov=borg --cov-config=../.coveragerc --benchmark-skip --pyargs {posargs:borg.testsuite}
|
||||||
# fakeroot -u needs some env vars:
|
# fakeroot -u needs some env vars:
|
||||||
passenv = *
|
passenv = *
|
||||||
|
|
||||||
|
[testenv:flake8]
|
||||||
|
changedir =
|
||||||
|
deps = flake8
|
||||||
|
commands = flake8
|
||||||
|
|
Loading…
Reference in a new issue