summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini12
1 files changed, 10 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 1d1fc95..a08321e 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}