Files
Ivan Anfimov 3bf2983c5e Bumping minimum tox version
and remove outdated testenv (py36-local)

Change-Id: Id17c5a8370933804637e160c93bf15a0c63658ae
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2026-05-16 19:17:09 +00:00

86 lines
2.0 KiB
INI

[tox]
envlist = pep8,py3,eslint,karma-local,docs-local,releasenotes
minversion = 3.18.0
[testenv]
usedevelop = True
allowlist_externals =
npm
rm
make
setenv = PYTHONWARNINGS=default::DeprecationWarning
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python manage.py test {posargs} --settings=zun_ui.test.settings
# For installation of horizon on local
# NOTICE: this tox.ini requires horizon repository cloned in sibling directory.
[testenv:hz-local]
commands =
pip install -e ../horizon
[testenv:venv]
commands = {posargs}
[testenv:pep8]
commands = flake8 {posargs}
[flake8]
# F405 TEMPLATES may be undefined, or defined from star imports
# (because it is not easy to avoid this in openstack_dashboard.test.settings)
# W504 line break after binary operator
ignore = F405,W504
exclude = .venv,.git,.tox,dist,*egg,build,node_modules
max-complexity = 20
[testenv:cover]
commands = python setup.py test --coverage --testr-args='{posargs}'
[testenv:eslint]
commands =
npm install
npm run lint
[testenv:karma]
commands =
npm install
npm run test
[testenv:karma-local]
commands =
{[testenv:karma]commands}
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
commands=
rm -rf doc/build
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:pdf-docs]
envdir = {toxworkdir}/docs
deps = {[testenv:docs]deps}
commands =
sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:docs-local]
deps =
{[testenv:docs]deps}
commands=
{[testenv:hz-local]commands}
{[testenv:docs]commands}
[testenv:releasenotes]
deps =
{[testenv:docs]deps}
commands =
rm -rf releasenotes/build/html
sphinx-build -a -E -W -j auto \
-d releasenotes/build/doctrees \
-b html releasenotes/source releasenotes/build/html