diff --git a/devops/helpers/scancodes.py b/devops/helpers/scancodes.py index c987d775..1830b6bd 100644 --- a/devops/helpers/scancodes.py +++ b/devops/helpers/scancodes.py @@ -180,4 +180,4 @@ def from_string(s): if len(codes) > 0: scancodes.append(codes) - return scancodes \ No newline at end of file + return scancodes diff --git a/run_tests.sh b/run_tests.sh index d781f22e..04607723 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -3,5 +3,4 @@ set -e set -x -flake8 --ignore=H302,H802 --show-source ./ - +tox -v diff --git a/tox.ini b/tox.ini index d0b3bbdf..07809ec9 100644 --- a/tox.ini +++ b/tox.ini @@ -5,16 +5,20 @@ [tox] minversion = 1.6 -envlist = flake8 +envlist = pep8 skipsdist = True +[testenv:pep8] +deps = hacking==0.10.1 +usedevelop = False +commands = + flake8 + [flake8] -ignore = H234,H302,H802 +# H238 old style class declaration, use new style (inherit from `object`) +# H234 assertEquals is deprecated, use assertEqual +ignore = H234,H238 exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs show-pep8 = True show-source = True count = True - -[testenv:flake8] -deps = hacking==0.9 -commands = flake8