summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:18:40 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 11:18:40 +0800
commit7a84979365e116a598ba6dd0a1c7a20f54acdf17 (patch)
tree68334f231697b1e85b0b75a1b0f96181605c40a4
parent33d0ec3b182af338392b8b7c35218e0753c37436 (diff)
downloadoslo-i18n-7a84979365e116a598ba6dd0a1c7a20f54acdf17.tar.gz
add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: I7b01e7edde84fb6c6860724c933b1dd70306c666
-rw-r--r--test-requirements.txt3
-rw-r--r--tox.ini7
2 files changed, 9 insertions, 1 deletions
diff --git a/test-requirements.txt b/test-requirements.txt
index fb4628c..a5268be 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -15,3 +15,6 @@ testscenarios>=0.4 # Apache-2.0/BSD
oslo.config>=4.6.0 # Apache-2.0
reno>=2.5.0 # Apache-2.0
+
+# Bandit security code scanner
+bandit>=1.1.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index dc8d951..729a869 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_i18n -x tests -n5
[testenv:venv]
commands = {posargs}