From 8820b4214edefeacec5f62c564ce081972335516 Mon Sep 17 00:00:00 2001 From: Christoph Gysin Date: Tue, 31 Mar 2015 14:11:53 +0300 Subject: [PATCH] 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 --- .gitignore | 1 + tox.ini | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 056ce97..0e448db 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pyc *.egg* gertty-env +.tox diff --git a/tox.ini b/tox.ini index 30c179d..9e55945 100644 --- a/tox.ini +++ b/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