Support tox4
Change-Id: If3a7005dc896ddf7c2556507f402c75a989551e2
This commit is contained in:
parent
f2bb7c72cd
commit
39908d1735
13
tox.ini
13
tox.ini
@ -1,7 +1,6 @@
|
|||||||
[tox]
|
[tox]
|
||||||
minversion = 3.18.0
|
minversion = 3.18.0
|
||||||
envlist = py38,pep8
|
envlist = py38,pep8,docs
|
||||||
skipsdist = True
|
|
||||||
ignore_basepython_conflict = True
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
@ -17,15 +16,15 @@ deps =
|
|||||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
allowlist_externals = sh
|
allowlist_externals = bash
|
||||||
commands =
|
commands =
|
||||||
stestr run {posargs}
|
stestr run {posargs}
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands =
|
commands =
|
||||||
flake8
|
flake8
|
||||||
{toxinidir}/tools/check_samples.sh
|
bash {toxinidir}/tools/check_samples.sh
|
||||||
sh ./tools/coding-checks.sh --pylint '{posargs}'
|
bash ./tools/coding-checks.sh --pylint '{posargs}'
|
||||||
{[testenv:bandit]commands}
|
{[testenv:bandit]commands}
|
||||||
|
|
||||||
[testenv:releasenotes]
|
[testenv:releasenotes]
|
||||||
@ -91,7 +90,7 @@ commands = oslo_debug_helper -t neutron_lib/tests/unit {posargs}
|
|||||||
|
|
||||||
[testenv:api-report]
|
[testenv:api-report]
|
||||||
commands =
|
commands =
|
||||||
{toxinidir}/tools/api_report.sh
|
bash {toxinidir}/tools/api_report.sh
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# H106: Don't put vim configuration in source files
|
# H106: Don't put vim configuration in source files
|
||||||
@ -99,7 +98,7 @@ commands =
|
|||||||
# H204: Use assert(Not)Equal to check for equality
|
# H204: Use assert(Not)Equal to check for equality
|
||||||
# H205: Use assert(Greater|Less)(Equal) for comparison
|
# H205: Use assert(Greater|Less)(Equal) for comparison
|
||||||
# H904: Delay string interpolations at logging calls
|
# H904: Delay string interpolations at logging calls
|
||||||
enable-extensions=H106,H203,H204,H205,H904
|
enable-extensions = H106,H203,H204,H205,H904
|
||||||
show-source = True
|
show-source = True
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools
|
||||||
import-order-style = pep8
|
import-order-style = pep8
|
||||||
|
Loading…
Reference in New Issue
Block a user