Update tox.ini for tox4

Change-Id: I7ec80abf6bda33ad3f074309f64491ee4af1c71b
This commit is contained in:
Rodolfo Alonso Hernandez 2023-01-23 16:14:00 +01:00
parent 5f429b7230
commit 149d7db4a7

13
tox.ini
View File

@ -1,11 +1,10 @@
[tox] [tox]
minversion = 3.1.1 minversion = 3.18.0
envlist = py3,pep8 envlist = py3,pep8
skipsdist = True
ignore_basepython_conflict = True ignore_basepython_conflict = True
[testenv] [testenv]
basepython = python3 basepython = {env:TOX_PYTHON:python3}
usedevelop = True usedevelop = True
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
@ -25,10 +24,11 @@ commands = stestr run --slowest {posargs}
[testenv:pep8] [testenv:pep8]
commands = flake8 commands = flake8
{toxinidir}/tools/coding-checks.sh --all '{posargs}' bash {toxinidir}/tools/coding-checks.sh --all '{posargs}'
deps = deps =
{[testenv]deps} {[testenv]deps}
pylint==2.5.3 # GPLv2 pylint==2.5.3 # GPLv2
allowlist_externals = bash
[testenv:venv] [testenv:venv]
commands = {posargs} commands = {posargs}
@ -46,7 +46,7 @@ commands =
[testenv:pdf-docs] [testenv:pdf-docs]
envdir = {toxworkdir}/docs envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps} deps = {[testenv:docs]deps}
whitelist_externals = allowlist_externals =
make make
commands = commands =
sphinx-build -W -b latex doc/source doc/build/pdf sphinx-build -W -b latex doc/source doc/build/pdf
@ -71,8 +71,9 @@ setenv = {[testenv]setenv}
OVN_BRANCH={env:OVN_BRANCH:} OVN_BRANCH={env:OVN_BRANCH:}
passenv = KEEP_VENV passenv = KEEP_VENV
commands = commands =
{toxinidir}/tools/setup-ovs.sh bash {toxinidir}/tools/setup-ovs.sh
{[testenv]commands} {[testenv]commands}
allowlist_externals = bash
[flake8] [flake8]
# W504 line break after binary operator # W504 line break after binary operator