summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2016-01-18 21:54:29 +0100
committerAndreas Jaeger <aj@suse.com>2016-01-18 21:54:29 +0100
commit0a0419d2b8a5580fbdce9a673b132af5fa0c4d57 (patch)
treed5d194c80a672d3f59a680622488c8c531360da2 /tox.ini
parent04f9f33b4b6079d39c3feea0b1ec1211a1de6a04 (diff)
downloadpython-keystoneclient-0a0419d2b8a5580fbdce9a673b132af5fa0c4d57.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: Ib15be94491232d63a345d6fc19869095a2537310
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 d874180..84626ca 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,7 +1,7 @@
[tox]
minversion = 1.6
skipsdist = True
-envlist = py34,py27,pep8,bandit,releasenotes
+envlist = py34,py27,linters,releasenotes
[testenv]
usedevelop = True
@@ -16,9 +16,17 @@ commands = find . -type f -name "*.pyc" -delete
python setup.py testr --slowest --testr-args='{posargs}'
whitelist_externals = find
-[testenv:pep8]
+[testenv:linters]
commands =
flake8
+ bandit -c bandit.yaml -r keystoneclient -n5 -p keystone_conservative
+
+[testenv:pep8]
+whitelist_externals =
+ echo
+commands =
+ {[testenv:linters]commands}
+ echo "Use tox -e linters instead"
[testenv:venv]
commands = {posargs}