summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2016-01-18 21:06:49 +0100
committerAndreas Jaeger <aj@suse.com>2016-01-21 19:52:26 +0100
commit63f0fc3e61a4407e419324c24ae619cc22d87545 (patch)
tree03ee445d09a1a38474791d2a6cea81655c92bb94 /tox.ini
parentb0e0593c395ecfad94c13896f80b95a6b2ecf238 (diff)
downloadkeystonemiddleware-63f0fc3e61a4407e419324c24ae619cc22d87545.tar.gz
Merge pep8 and bandit into linters
Create new linters environment consisting of pep8 and bandit. Keep pep8 as an alias for linters and add a message when invoked. Once this change is in, the infra job can be changed to only run linters job, this allows to run one less job for each change. Change-Id: Idff7d7134c50aa4740ed87eeeda83f7cca32f3db
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}