diff options
author | Eric Brown <browne@vmware.com> | 2016-04-28 07:46:57 -0700 |
---|---|---|
committer | Eric Brown <browne@vmware.com> | 2016-07-08 22:39:55 +0000 |
commit | 79532ea599cd0226e7176c6c7d59e04ee3b1a8ff (patch) | |
tree | 3ae776533e3af4f3b5873d5e8c06447153349088 /tox.ini | |
parent | 7207ffaf616db90e1efe2bb7e4184b6d90ed007b (diff) | |
download | glance_store-79532ea599cd0226e7176c6c7d59e04ee3b1a8ff.tar.gz |
Add bandit to pep8 and bandit testenv0.14.0
This patch adds bandit security linter to tox jobs. It ignores
files in the 'tests' directory.
This patch will also fix or exclude any issues as a result from
scan.
Change-Id: I9caa41f596a17a8b961a542d4bc6bb121e7a147f
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -25,6 +25,21 @@ commands = sphinx-build -a -E -W -d releasenotes/build/.doctrees -b html release [testenv:pep8] commands = flake8 {posargs} + # Run security linter + # The following bandit tests are being skipped: + # B101 - Use of assert detected. + # B110 - Try, Except, Pass detected. + # B303 - Use of insecure MD2, MD4, or MD5 hash function. + bandit -r glance_store -x tests --skip B101,B110,B303 + +[testenv:bandit] +# NOTE(browne): This is required for the integration test job of the bandit +# project. Please do not remove. +# The following bandit tests are being skipped: +# B101 - Use of assert detected. +# B110 - Try, Except, Pass detected. +# B303 - Use of insecure MD2, MD4, or MD5 hash function. +commands = bandit -r glance_store -x tests --skip B101,B110,B303 [testenv:cover] # NOTE(nikhil): this target does not use constraints because upstream infra |