From 2bec754d5097bedcbb14c279006b392f98e23d1e Mon Sep 17 00:00:00 2001 From: Nicholas Jones Date: Wed, 15 Mar 2017 13:38:22 -0500 Subject: [PATCH] Add bandit-baseline to tox.ini To add a bandit gate, a new tox environment is needed Change-Id: If247add30d8dc4761dacb82c8d02ea4bd71546f0 --- tox.ini | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tox.ini b/tox.ini index d320cf4aba5..bd3acebf5d9 100644 --- a/tox.ini +++ b/tox.ini @@ -108,6 +108,10 @@ commands = python {toxinidir}/tools/generate_driver_list.py deps = -r{toxinidir}/test-requirements.txt commands = bandit -r cinder -n5 -x tests -ll +[testenv:bandit-baseline] +envdir = {toxworkdir}/bandit +commands = bandit-baseline -r cinder -n5 -x tests -ii -ll + [flake8] # Following checks are ignored on purpose. #