Clean fix for bandit exclusions change

Don't mangle requirements, just fix the glob.

Change-Id: I4b57336a103c75df877ff65e645b3b05b3c79a49
This commit is contained in:
Adam Harwell 2019-05-14 14:12:26 -07:00
parent af51a84477
commit dec3639078
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ testscenarios>=0.4 # Apache-2.0/BSD
WebTest>=2.0.27 # MIT
tempest>=17.1.0 # Apache-2.0
# Bandit security code scanner
bandit!=1.6.0,>=1.1.0 # Apache-2.0
bandit>=1.1.0 # Apache-2.0
zake>=0.1.6 # Apache-2.0
doc8>=0.6.0 # Apache-2.0
Pygments>=2.2.0 # BSD license

View File

@ -88,7 +88,7 @@ commands =
[testenv:bandit]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r designate -n5 -x tests -t \
commands = bandit -r designate -n5 -x 'designate/tests/*' -t \
B505,B504,B503,B502,B501,B604,B605,B001,B601,B602,B701,B609,B702,\
B608,B506,B312,B310,B411,B108,B103,B102,B309,B308,B302,B307,B306