[CI] Run bandit
Change-Id: If31afc57bb6fe23d2ae9b081b81519cdb4539ad9
This commit is contained in:
parent
39f03063c0
commit
610116b00f
|
@ -7,3 +7,9 @@
|
|||
- release-notes-jobs-python3
|
||||
- periodic-stable-jobs
|
||||
- periodic-jobs-with-oslo-master
|
||||
check:
|
||||
jobs:
|
||||
- openstack-tox-linters
|
||||
gate:
|
||||
jobs:
|
||||
- openstack-tox-linters
|
||||
|
|
24
tox.ini
24
tox.ini
|
@ -22,8 +22,30 @@ deps =
|
|||
commands =
|
||||
python manage.py test {posargs} --settings=masakaridashboard.test.settings --verbosity 2
|
||||
|
||||
[testenv:linters]
|
||||
skip_install = True
|
||||
deps =
|
||||
{[testenv:pep8]deps}
|
||||
{[testenv:bandit]deps}
|
||||
commands =
|
||||
{[testenv:pep8]commands}
|
||||
{[testenv:bandit]commands}
|
||||
|
||||
[testenv:pep8]
|
||||
commands = flake8 {posargs}
|
||||
skip_install = True
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
hacking
|
||||
commands =
|
||||
flake8 {posargs}
|
||||
|
||||
[testenv:bandit]
|
||||
skip_install = True
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
bandit
|
||||
commands =
|
||||
bandit -r masakaridashboard
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
|
Loading…
Reference in New Issue