summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorEric Brown <browne@vmware.com>2016-03-12 20:03:32 -0800
committerEric Brown <browne@vmware.com>2016-03-12 20:03:32 -0800
commit0f58e2317cc3b992ac1c69f90a69d34fea355924 (patch)
treee606bb412cd5f4e48e00340e8567dca23f3b49be /tox.ini
parent4ea1ade893a206bb3c35d34c411f1d597dbf1af7 (diff)
downloadoslo-messaging-0f58e2317cc3b992ac1c69f90a69d34fea355924.tar.gz
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
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index b1d043e..b8a3a6a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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