diff --git a/tox.ini b/tox.ini index 1d1fc957..a08321ec 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py34,py27,pep8,releasenotes +envlist = py34,py27,linters,releasenotes [testenv] usedevelop = True @@ -14,9 +14,17 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = python setup.py testr --testr-args='{posargs}' -[testenv:pep8] +[testenv:linters] commands = flake8 + bandit -c bandit.yaml -r keystonemiddleware -n5 -p gate + +[testenv:pep8] +whitelist_externals = + echo +commands = + {[testenv:linters]commands} + echo "Use tox -e linters instead" [testenv:venv] commands = {posargs}