Involve bandit

JIRA: RHELCMP-8562
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2022-04-07 13:47:12 +08:00
parent 707a2c8d10
commit e490764985

10
tox.ini
View File

@ -1,5 +1,5 @@
[tox]
envlist = flake8, black, py27, py3
envlist = bandit, flake8, black, py27, py3
[testenv:flake8]
deps =
@ -8,6 +8,14 @@ whitelist_externals = sh
commands =
sh -c "flake8 pungi pungi_utils setup.py tests/*py"
[testenv:bandit]
basepython = python3
skip_install = true
deps = bandit
commands =
bandit -r -ll pungi pungi_utils
ignore_outcome = True
[testenv:black]
basepython = python3
whitelist_externals = sh