X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=2eaadacdb41cb55ed2e055492826fdc6560ae7c7;hb=aee90ea41fde62c364d1b194c8e49ff34e6f2cb9;hp=e9a14077b40b535ee3df0062b99cf8aa0bcc1d93;hpb=bdbd22904733af311225a3315555bb39ea12ed55;p=doctor.git diff --git a/tox.ini b/tox.ini index e9a14077..2eaadacd 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 2.3.1 -envlist = py35 +envlist = py35, pep8 skipsdist = True [testenv] @@ -30,3 +30,19 @@ passenv = PROFILER_TYPE changedir = {toxinidir}/doctor_tests commands = doctor-test + +[testenv:pep8] +changedir = {toxinidir} +commands = flake8 + +[flake8] +# E123, E125 skipped as they are invalid PEP-8. +# H106: Don’t put vim configuration in source files +# H203: Use assertIs(Not)None to check for None + +show-source = True +ignore = E123,E125 +enable-extensions=H106,H203 +builtins = _ +filename = *.py,app.wsgi +exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tests