Add bandit target to tox

Change-Id: I3ca2f77e026167bf6828072ccd02872e7c504c1c
This commit is contained in:
Armando Migliaccio 2017-07-28 17:49:28 -07:00
parent 994947fa37
commit bd4c2c9760
2 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# process, which may cause wedges in the gate later.
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
bandit>=1.1.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
flake8-import-order==0.12 # LGPLv3

View File

@ -151,6 +151,10 @@ import-order-style = pep8
import_exceptions = neutron._i18n
local-check-factory = neutron.hacking.checks.factory
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r neutron -x tests -n5
[testenv:bashate]
commands = bash -c "find {toxinidir} \
-not \( -type d -name .tox\* -prune \) \