summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:12:43 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:12:43 +0800
commitc7a2b56c4f7d135f51f73afeb5e981c04bd753d5 (patch)
tree14b1275bd984e3aa7501bade8be6ead3f36b856d /tox.ini
parent18aa6ec496e54b2403c2cc65234ef6447021fdee (diff)
downloadoslo-context-c7a2b56c4f7d135f51f73afeb5e981c04bd753d5.tar.gz
add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: Ie418ecadcff9351a776ff790492c73225efddb6f
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 b6f9765..8322c13 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_context -x tests -n5
[testenv:venv]
commands = {posargs}