summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorKenneth Giusti <kgiusti@gmail.com>2018-06-13 16:19:28 -0400
committerKenneth Giusti <kgiusti@gmail.com>2018-07-02 13:16:11 -0400
commitae9e67388706e57561531652145ba187f8870b94 (patch)
tree83cfdc1e88c4e9462121f1b20f4273a02835b32a /tox.ini
parent044e6f20e65084f3c4ecc554672d3271b2a2acd3 (diff)
downloadoslo-messaging-ae9e67388706e57561531652145ba187f8870b94.tar.gz
Fix the bandit security linter test
Add the bandit security linter test to the pep8 target Change-Id: I9324b9d9df77fd05c2e10bb48d7ccf8b4c634525
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini18
1 files changed, 10 insertions, 8 deletions
diff --git a/tox.ini b/tox.ini
index c6ce87a..5465358 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
[tox]
minversion = 2.0
-envlist = py35,py27,pep8,bandit
+envlist = py35,py27,pep8
[testenv]
setenv =
@@ -17,8 +17,10 @@ commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
basepython = python3
-commands = flake8
-deps = hacking<0.11,>=0.10.0
+commands =
+ flake8
+ # run security linter
+ bandit -r oslo_messaging -x tests,_drivers/zmq_driver,_drivers/impl_zmq.py -n5
[testenv:cover]
basepython = python3
@@ -104,13 +106,13 @@ commands = {toxinidir}/setup-test-env-zmq-proxy.sh python setup.py testr --slowe
basepython = python2.7
commands = {toxinidir}/setup-test-env-zmq-pub-sub.sh python setup.py testr --slowest --testr-args='{posargs:oslo_messaging.tests.functional}'
+
[testenv:bandit]
+# NOTE(kgiusti): This is required for the integration test job of the bandit
+# project. Please do not remove.
basepython = python3
-deps =
- -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
- -r{toxinidir}/test-requirements.txt
- -r{toxinidir}/requirements.txt
-commands = bandit -r oslo_messaging -x tests -n5
+# skip ZeroMQ - it is deprecated
+commands = bandit -r oslo_messaging -x tests,_drivers/zmq_driver,_drivers/impl_zmq.py -n5
[flake8]
show-source = True