Explicitly exclude tests from bandit scan
Now that the bandit linter runs without a bandit.yaml specified, it should exclude the tests directory similar to how it did before in the bandit.yaml. The reason this has not caused a problem yet is because bandit is still finding a config bandit.yaml in .tox/pep8/etc/bandit/bandit.yaml. But in a newer version of bandit this will not be the case. Change-Id: I6cdceaff2aa906e813f1d1e993f60e66358946ee
This commit is contained in:
parent
4ea1ade893
commit
0f58e2317c
2
tox.ini
2
tox.ini
@ -40,7 +40,7 @@ commands = {toxinidir}/setup-test-env-zmq.sh python setup.py testr --slowest --t
|
|||||||
|
|
||||||
[testenv:bandit]
|
[testenv:bandit]
|
||||||
deps = -r{toxinidir}/test-requirements.txt
|
deps = -r{toxinidir}/test-requirements.txt
|
||||||
commands = bandit -r oslo_messaging -n5
|
commands = bandit -r oslo_messaging -x tests -n5
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
show-source = True
|
show-source = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user