Enable bandit for utitilies

Change-Id: Id63488414ae16b384549fcf8cbd9805b5b1a81ad
This commit is contained in:
Chen, Haochuan Z 2021-05-27 07:46:09 +08:00
parent 931887828b
commit 3d05eea3ed
2 changed files with 16 additions and 0 deletions

View File

@ -22,3 +22,11 @@ commands =
[flake8]
exclude = .venv,.git,.tox,dist,doc,etc,*glance/locale*,*lib/python*,*egg,build
[bandit]
exclude = tests
[testenv:bandit]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = bandit --ini tox.ini -n 5 -r ceph_manager

View File

@ -17,3 +17,11 @@ commands =
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[bandit]
exclude = tests
[testenv:bandit]
basepython = python3
deps = -r{toxinidir}/test-requirements.txt
commands = bandit --ini tox.ini -n 5 -r ceph_manager