diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-11-30 11:12:43 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-11-30 11:12:43 +0800 |
commit | c7a2b56c4f7d135f51f73afeb5e981c04bd753d5 (patch) | |
tree | 14b1275bd984e3aa7501bade8be6ead3f36b856d | |
parent | 18aa6ec496e54b2403c2cc65234ef6447021fdee (diff) | |
download | oslo-context-c7a2b56c4f7d135f51f73afeb5e981c04bd753d5.tar.gz |
add bandit to pep8 job
Add the bandit security scanner to the pep8 job.
Change-Id: Ie418ecadcff9351a776ff790492c73225efddb6f
-rw-r--r-- | test-requirements.txt | 3 | ||||
-rw-r--r-- | tox.ini | 7 |
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 openstackdocstheme>=1.17.0 # Apache-2.0 sphinx>=1.6.2 # BSD reno>=2.5.0 # Apache-2.0 + +# Bandit security code scanner +bandit>=1.1.0 # Apache-2.0 @@ -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} |