add bandit to pep8 job
Add the bandit security scanner to the pep8 job. Change-Id: Ifd1414536ed2ffa1f0c9ebf012569b5869067793
This commit is contained in:
parent
39ff06b631
commit
a800709d93
|
@ -8,3 +8,5 @@ openstackdocstheme>=1.17.0 # Apache-2.0
|
|||
pifpaf>=0.10.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
|
||||
|
|
7
tox.ini
7
tox.ini
|
@ -27,7 +27,12 @@ commands =
|
|||
{toxinidir}/tools/setup-etcd-env.sh pifpaf -e OSLO_CACHE_TEST run etcd -- python setup.py testr --slowest --testr-args='functional.*'
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8
|
||||
deps =
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
commands =
|
||||
flake8
|
||||
# Run security linter
|
||||
bandit -r oslo_cache -x tests -n5
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
|
Loading…
Reference in New Issue