Run bandit job with python3

Most jobs run with python3 now by default.

In addition, this commit moves bandit testenv definitions
before non-testenv tox environments. I believe this brings
better readability.

Change-Id: Ibc66211ebc517368b629a09084a494dc81a0265f
This commit is contained in:
Akihiro Motoki 2018-08-27 02:22:11 +09:00
parent a0d0c31fdd
commit 53c738337c

14
tox.ini
View File

@ -157,6 +157,14 @@ commands = {envpython} {toxinidir}/manage.py {posargs}
basepython = python3
commands = {envpython} {toxinidir}/manage.py runserver {posargs}
[testenv:bandit]
basepython = python3
commands = bandit -r horizon openstack_auth openstack_dashboard -n5 -x tests -ll
[testenv:bandit-baseline]
envdir = {toxworkdir}/bandit
basepython = python3
[flake8]
filename = *.py,django.wsgi
exclude = .git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,node_modules,openstack_dashboard/enabled/*
@ -176,12 +184,6 @@ application-import-names = horizon,openstack_dashboard
[hacking]
local-check-factory = horizon.hacking.checks.factory
[testenv:bandit]
commands = bandit -r horizon openstack_auth openstack_dashboard -n5 -x tests -ll
[testenv:bandit-baseline]
envdir = {toxworkdir}/bandit
commands = bandit-baseline -r horizon openstack_auth openstack_dashboard -n5 -x tests -ii -ll
[doc8]