Files
freezer-web-ui/tox.ini
Ivan Anfimov 32a09133de Drop environments for nose
Horizon dropped its usage of nose in 14.0.0[1] and these environments
have been unused since then.

[1] 1f80d94459856a8c477310cc0fe4b0e165d8c0c1

Also drop the VIRTUAL_ENV environment which is now automatically set
by tox.

Change-Id: I02f26ebcf95696ca5b8b63d077bc459c840d7a09
Co-authored-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025-09-05 01:23:49 +00:00

52 lines
1.3 KiB
INI

[tox]
minversion = 4.0
envlist = py3,py311,py312,pep8,docs,pylint,cover
ignore_basepython_conflict = True
[testenv]
basepython = {env:TOX_PYTHON:python3}
usedevelop = True
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python3 manage.py test {posargs}
[testenv:py311]
basepython = python3.11
[testenv:py312]
basepython = python3.12
[testenv:pep8]
commands = flake8 {posargs}
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python3 setup.py test --coverage --testr-args={posargs}
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
setenv = DJANGO_SETTINGS_MODULE=freezer_ui.test.settings
commands = sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:pdf-docs]
deps = {[testenv:docs]deps}
allowlist_externals =
make
commands =
sphinx-build -j auto -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf
[testenv:pylint]
commands = pylint --rcfile .pylintrc freezer_ui
[flake8]
# W504 line break after binary operator
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject,tools,doc
max-complexity = 20
ignore = H404,H403,H401,H238,H306,H701,W504
#H405