summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2017-11-30 13:27:33 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2017-12-22 10:10:59 +0800
commit83a32d33c2987832d1762ce16c975d3d17fc7c4a (patch)
tree27caaa540c0b4aa8d5b99319a1cd80c15d0218e6 /tox.ini
parent4f81c419947e2793e3eda4ce8f3664058b5a5d2c (diff)
downloadoslo-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.ini5
1 files changed, 4 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 6aad1b7..3afe728 100644
--- a/tox.ini
+++ b/tox.ini
@@ -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}