aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-25 11:10:55 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-05-25 11:23:53 +0200
commit0440ffcac18991395799e5aafc9243e028917ab6 (patch)
tree108f46cfa1d4c04579f94b3743c11d5ac59d0b76 /tox.ini
parent5853dd1ef3c522a975f9685250b1b3e85588f738 (diff)
Run bandit when verifying changes
It reports only MEDIUM issues or higher like nova [1]. It selects bandit 1.1.0 as defined in nova and neutron lower constraints [2]. [1] https://github.com/openstack/nova/blob/master/tox.ini#L221 [2] https://github.com/openstack/nova/blob/master/lower-constraints.txt#L8 Change-Id: I6fc505f684701792d3e03659eb0feea8321452c0 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 6 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 4eb20a81e..0e95bab0f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,perm,cover
+envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,bandit,py27,perm,cover
[testenv]
usedevelop = True
@@ -75,6 +75,11 @@ files =
build.sh
commands = bashate {[testenv:bashate]files}
+
+[testenv:bandit]
+basepython = python2.7
+commands = bandit -r functest -x tests -n 5 -ll -s B601,B602
+
[testenv:cover]
basepython = python2.7
dirs =