summaryrefslogtreecommitdiff
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
parent18aa6ec496e54b2403c2cc65234ef6447021fdee (diff)
add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: Ie418ecadcff9351a776ff790492c73225efddb6f
Notes
Notes (review): Code-Review+2: Doug Hellmann <doug@doughellmann.com> Workflow+1: ChangBo Guo(gcb) <glongwave@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Wed, 13 Dec 2017 07:55:23 +0000 Reviewed-on: https://review.openstack.org/524051 Project: openstack/oslo.context Branch: refs/heads/master
-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 b6f9765..8322c13 100644
--- a/tox.ini
+++ b/tox.ini
@@ -12,7 +12,12 @@ deps = -r{toxinidir}/test-requirements.txt
12commands = python setup.py testr --slowest --testr-args='{posargs}' 12commands = python setup.py testr --slowest --testr-args='{posargs}'
13 13
14[testenv:pep8] 14[testenv:pep8]
15commands = flake8 15deps =
16 -r{toxinidir}/test-requirements.txt
17commands =
18 flake8
19 # Run security linter
20 bandit -r oslo_context -x tests -n5
16 21
17[testenv:venv] 22[testenv:venv]
18commands = {posargs} 23commands = {posargs}