summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2017-12-13 07:55:23 +0000
committerGerrit Code Review <review@openstack.org>2017-12-13 07:55:23 +0000
commitf9970a94e5c70c6fa453061196899cec7a8a5b40 (patch)
treeaa62e17ad4149817a4b57f4e50596f3cd4464912
parent83d00012b468d90ec156704343ef00aa9cfad443 (diff)
parentc7a2b56c4f7d135f51f73afeb5e981c04bd753d5 (diff)
Merge "add bandit to pep8 job"
-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 09a34e6..6943177 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -11,3 +11,6 @@ coverage!=4.4,>=4.0 # Apache-2.0
11openstackdocstheme>=1.17.0 # Apache-2.0 11openstackdocstheme>=1.17.0 # Apache-2.0
12sphinx>=1.6.2 # BSD 12sphinx>=1.6.2 # BSD
13reno>=2.5.0 # Apache-2.0 13reno>=2.5.0 # Apache-2.0
14
15# Bandit security code scanner
16bandit>=1.1.0 # Apache-2.0
diff --git a/tox.ini b/tox.ini
index 51a001c..d916ce6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,12 @@ deps =
11commands = python setup.py testr --slowest --testr-args='{posargs}' 11commands = python setup.py testr --slowest --testr-args='{posargs}'
12 12
13[testenv:pep8] 13[testenv:pep8]
14commands = flake8 14deps =
15 -r{toxinidir}/test-requirements.txt
16commands =
17 flake8
18 # Run security linter
19 bandit -r oslo_context -x tests -n5
15 20
16[testenv:venv] 21[testenv:venv]
17commands = {posargs} 22commands = {posargs}