summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2016-02-26 17:11:47 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2016-03-02 13:26:41 +0800
commit47318f2490524482f30d40f3638848c771fd4b50 (patch)
tree036491cfe3eff41cbdf0b4e54b8af9593983a1cd /tox.ini
parent48977b6641b1434c3a13ee9647a3f46bcf052636 (diff)
downloadoslo-config-47318f2490524482f30d40f3638848c771fd4b50.tar.gz
Move bandit into pep8
Run security linter bandit as part of pep8. Pep8 is the usual linter target and thus let's use it there instead of starting another short-running job to enable it. This copy the idea from I54a4fccebb375517f9cd129f62f8f0c795b6edcc Change-Id: I4dc181ec30fd632043619e4a34093772de23eb2a
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 2defb77..cafec99 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
distribute = False
-envlist = py34,py27,pep8,bandit
+envlist = py34,py27,pep8
[testenv]
deps = -r{toxinidir}/test-requirements.txt
@@ -9,7 +9,10 @@ commands =
coverage report --show-missing
[testenv:pep8]
-commands = flake8
+commands =
+ flake8
+ # Run security linter
+ bandit -r oslo_config -n5
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}