diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-11-30 13:27:33 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-12-22 10:10:59 +0800 |
commit | 83a32d33c2987832d1762ce16c975d3d17fc7c4a (patch) | |
tree | 27caaa540c0b4aa8d5b99319a1cd80c15d0218e6 /tox.ini | |
parent | 4f81c419947e2793e3eda4ce8f3664058b5a5d2c (diff) | |
download | oslo-db-83a32d33c2987832d1762ce16c975d3d17fc7c4a.tar.gz |
add bandit to pep8 job
Add the bandit security scanner to the pep8 job.
* convert assert statement to raise AssertionError
* skip B311,B105
Change-Id: I23b2732791f42adfa04bd64f02b25cbdb98aaf93
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -34,7 +34,10 @@ commands = env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}' [testenv:pep8] -commands = flake8 +commands = + flake8 + # Run security linter + bandit -r oslo_db -x tests -n5 --skip B105,B311 [testenv:venv] commands = {posargs} |