Browse Source

tox: Fix flake8 setup

This fixes the tox configuration for the flake8 target.

It excludes all existing flake8 issues, so the flake8 target succeeds.
In the following commits, I will fix these flake issues individually,
and remove the corresponding exclude from the list, so that every commit
passes the flake8 test.

It also adds the generated .tox folder to .gitignore.

Change-Id: I1f583d9e344b5af644f99ba2a94a09ecaff61176
changes/34/172734/1
Christoph Gysin 7 years ago
parent
commit
8820b4214e
  1. 1
      .gitignore
  2. 4
      tox.ini

1
.gitignore vendored

@ -1,3 +1,4 @@
*.pyc
*.egg*
gertty-env
.tox

4
tox.ini

@ -15,6 +15,7 @@ downloadcache = ~/cache/pip
[testenv:pep8]
commands = flake8
deps = flake8
[testenv:cover]
commands =
@ -27,6 +28,7 @@ commands = python setup.py build_sphinx
commands = {posargs}
[flake8]
ignore = E125,H
ignore = E122,E123,E126,E127,E128,E129,E221,E225,E226,E231,E251,E261,E262,E265,E301,E302,E303,E711,E712,E721,F401,F403,F821,F841,W391
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg
max-line-length = 172

Loading…
Cancel
Save