Merge "Enable bandit runs for tox"

This commit is contained in:
Zuul 2021-05-21 17:09:16 +00:00 committed by Gerrit Code Review
commit 30c0d286fe
2 changed files with 5 additions and 0 deletions

View File

@ -15,3 +15,4 @@ castellan>=3.7.0 # Apache-2.0
pycodestyle==2.6.0 # MIT
doc8>=0.8.1 # Apache-2.0
fixtures>=3.0.0 # Apache-2.0/BSD
bandit>=1.6.0,<1.7.0 # Apache-2.0

View File

@ -50,6 +50,10 @@ envdir = {toxworkdir}/pep8
commands =
{toxinidir}/tools/fast8.sh
[testenv:bandit]
deps = -r{toxinidir}/test-requirements.txt
commands: bandit -r os_brick -x os_brick/tests -n5
[testenv:pylint]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}