summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorEric Brown <browne@vmware.com>2016-03-12 19:58:54 -0800
committerEric Brown <browne@vmware.com>2016-03-12 19:58:54 -0800
commitfa16eb73e1c692af10bdd01a98fddb4602f79138 (patch)
tree4597bcf13c44ad4173f79f5addad69eee2311674 /tox.ini
parent141558e565f1c6681fd14bf384fb7023faef8cf9 (diff)
downloadoslo-config-fa16eb73e1c692af10bdd01a98fddb4602f79138.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: I66dc7c2b826cf6e061fc6abc368c2be00ab2d202
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini4
1 files changed, 2 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index cafec99..f04fa25 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,7 @@ commands =
commands =
flake8
# Run security linter
- bandit -r oslo_config -n5
+ bandit -r oslo_config -x tests -n5
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
@@ -28,7 +28,7 @@ commands = python setup.py build_sphinx
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
-commands = bandit -r oslo_config -n5
+commands = bandit -r oslo_config -x tests -n5
[flake8]
show-source = True