aboutsummaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-05-25 11:03:40 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-05-25 11:30:22 +0200
commit056c6235eefab5582c3a6803aa9a3cdea2c0c894 (patch)
tree207e04d98252ecb2f2961b8b20f86ae562eba79f /tox.ini
parentee33658a4b4ce3c556f4a0be986c080fcfe4cb93 (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: I52524df867d99fae75798475c762a5f8253dacfa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit c659caccbf1f55db4e6e3cb31bf088ac57751e86)
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 4 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index 5910c199..1dedf986 100644
--- a/tox.ini
+++ b/tox.ini
@@ -57,6 +57,10 @@ files =
build.sh
commands = bashate {[testenv:bashate]files}
+[testenv:bandit]
+basepython = python2.7
+commands = bandit -r xtesting -x tests -n 5 -ll -s B602
+
[testenv:cover]
basepython = python2.7
dirs =