Files
Takashi Kajinami bca9237980 Drop redundant basepython
Python 2 reached its EOL quite long time ago and Python 3 is now
widely used.

This allows us to get rid of ignore_base_python.

Change-Id: I7ee16fa82c4a72484ad1f118b8a1f30802ba612c
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2026-01-24 00:08:38 +09:00

49 lines
1.1 KiB
INI

[tox]
minversion = 3.18.0
envlist = py3,pep8
[testenv]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
[testenv:pep8]
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:docs]
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/doc/requirements.txt
allowlist_externals =
rm
commands =
rm -rf doc/build/html doc/build/doctrees
sphinx-build -W --keep-going -b html -d doc/build/doctrees doc/source doc/build/html
[testenv:cover]
setenv =
PYTHON=coverage run --source pycadf --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:venv]
commands = {posargs}
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
# We only enable the hacking (H) checks
select = H
ignore = H301,H403,H404,H405
show-source = true
exclude = .tox,dist,doc,*.egg,build