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:
Eric Brown 2016-03-12 20:03:32 -08:00
parent 4ea1ade893
commit 0f58e2317c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ commands = {toxinidir}/setup-test-env-zmq.sh python setup.py testr --slowest --t
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
commands = bandit -r oslo_messaging -n5
commands = bandit -r oslo_messaging -x tests -n5
[flake8]
show-source = True