summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:22:06 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:22:06 +0800
commite6a09f3ce70fb0de919752a09a2fb210f797f1e1 (patch)
tree2f1b02f1a5f4f848ac53601506f72a978874bdf1 /tox.ini
parent2bf92c647372d62f61649c1597c906abcc292bbd (diff)
downloadoslo-middleware-e6a09f3ce70fb0de919752a09a2fb210f797f1e1.tar.gz
add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: Ib4707b55c190b117410212cef7f5afc789c91583
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 6 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index d5dcaa7..2e1e6ad 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,12 @@ deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
-commands = flake8
+deps =
+ -r{toxinidir}/test-requirements.txt
+commands =
+ flake8
+ # Run security linter
+ bandit -r oslo_middleware -x tests -n5
[testenv:venv]
commands = {posargs}