Add bandit in tox -e pep8
Add bandit tox environment and amend pep8 env to run it. Also, fix bandit errors with "0.0.0.0". Change-Id: Ieb5785abd945663e07c07f0ddd3d9a074004f46a Closes-Bug: #1594423
This commit is contained in:
5
tox.ini
5
tox.ini
@@ -20,6 +20,7 @@ commands =
|
||||
commands =
|
||||
doc8 doc/source/ CONTRIBUTING.rst HACKING.rst README.rst
|
||||
flake8
|
||||
bandit -r watcher -x tests -n5 -ll
|
||||
|
||||
[testenv:venv]
|
||||
setenv = PYTHONHASHSEED=0
|
||||
@@ -61,3 +62,7 @@ ignore-path=doc/source/image_src,doc/source/man,doc/source/api
|
||||
|
||||
[testenv:releasenotes]
|
||||
commands = sphinx-build -a -W -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[testenv:bandit]
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
commands = bandit -r watcher -x tests -n5 -ll
|
||||
|
||||
Reference in New Issue
Block a user