diff options
author | Eric Brown <browne@vmware.com> | 2016-03-12 19:58:54 -0800 |
---|---|---|
committer | Eric Brown <browne@vmware.com> | 2016-03-12 19:58:54 -0800 |
commit | fa16eb73e1c692af10bdd01a98fddb4602f79138 (patch) | |
tree | 4597bcf13c44ad4173f79f5addad69eee2311674 /tox.ini | |
parent | 141558e565f1c6681fd14bf384fb7023faef8cf9 (diff) | |
download | oslo-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.ini | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |