X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=354740fc375007891b667032ab7e4fe85f6817c9;hb=refs%2Fheads%2Fstable%2Ffraser;hp=3120ac12c6cd8b65d41d11f0d2fbc3adaba853f8;hpb=e574290197fdec7b85dc789a41bc8f5c6c28f52a;p=nfvbench.git diff --git a/tox.ini b/tox.ini index 3120ac1..354740f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] minversion = 1.6 -envlist = py27,pep8 +envlist = py27,pep8, lint skipsdist = True [testenv] @@ -10,11 +10,14 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = py.test -q -s --basetemp={envtmpdir} {posargs} +commands = py.test -q --basetemp={envtmpdir} {posargs} [testenv:pep8] commands = flake8 {toxinidir} +[testenv:lint] +commands = pylint --rcfile pylint.rc nfvbench test + [testenv:venv] commands = {posargs} @@ -37,6 +40,6 @@ show-source = True #H404: multi line docstring should start without a leading new line #H405: multi line docstring summary not separated with an empty line #H904: Wrap long lines in parentheses instead of a backslash -ignore = E123,E125,H803,E302,E303,H233,H236,H302,H404,H405,H904 +ignore = E123,E125,H803,E302,E303,H104,H233,H236,H302,H404,H405,H904,D102,D100,D107 builtins = _ -exclude=venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build +exclude=venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,dib-venv