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
This commit is contained in:
Christoph Gysin 2015-03-31 14:11:53 +03:00
parent 86574f5eec
commit 8820b4214e
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

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

View File

@ -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