1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2025-01-03 13:45:49 +00:00

tox: add flake8 for style and other checking

This commit is contained in:
Thomas Waldmann 2018-11-22 01:40:57 +01:00
parent 2532a4cd6c
commit 2ccc943b69

View file

@ -64,8 +64,21 @@ source = src
[mypy]
ignore_missing_imports = true
[flake8]
# please note that the values are adjusted so that they do not cause failures
# with existing code. if you want to change them, you should first fix all
# flake8 failures that appear with your change.
ignore =
W503,
F401,F821,F841,
E712
# line length long term target: 120
max-line-length = 150
exclude = build,dist,.git,.idea,.cache,.tox
[tox:tox]
envlist = py36
envlist = py36,flake8
[testenv]
deps =
@ -74,3 +87,8 @@ deps =
pytest-mock
pytest-faulthandler
commands=pytest
[testenv:flake8]
deps =
flake8
commands=flake8 src tests