summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:30:17 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:30:17 +0800
commit839b34080b000f57c503020accdb17404707374c (patch)
treee82356a0e67c493b23ec7ec43ba1736ae8de5153 /tox.ini
parenta9931f3708e86983ae906d0060b111bc41d95e58 (diff)
downloadoslo-policy-839b34080b000f57c503020accdb17404707374c.tar.gz
add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: I3cf1630c8d69515700e98a9274f42aa3f3b05303
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 42d3fb4..5ebd980 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_policy tests -n5
[testenv:venv]
commands = {posargs}