]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: Remove ignored PEP8 errors and directories
authorStephen Finucane <stephen.finucane@intel.com>
Sun, 29 Nov 2015 18:58:41 +0000 (18:58 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 3 Dec 2015 22:09:20 +0000 (22:09 +0000)
Remove the following 'ignore' errors:

  E121-128,131  various visual indentation errors
  E251          spaces around keyword / parameter equals
  H405          multi-line docstring must have summary line

The only error remaining is E129, which is technically not part of the
PEP8 standard and contributes in practice besides lots of manual line
wrapping.

In addition, there's no good reason why the tests directory shouldn't
be assessed like everything else - tests are still code and, as such,
should be held to the same standards..

Finally, include the 'pwclient' script which should not be ignored.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index a5bd8984279e8ed19b8f960239bdaf793730977c..77c450b7cf4626a5579d26023f8efcf3ec1ba949 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -25,11 +25,11 @@ passenv =
 [testenv:pep8]
 basepython = python2.7
 deps = flake
-commands = flake8 {posargs} patchwork
+commands = flake8 {posargs} patchwork patchwork/bin/pwclient
 
 [flake8]
-ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,H405
-exclude = ./patchwork/tests
+ignore = E129
+exclude = ./patchwork/migrations
 
 [testenv:lint]
 basepython = python2.7