Files
aetos/tox.ini
Jaromir Wysoglad 65c9c87e57 [tox] remove skipdist = true
This will fix the configuration section of the documentation.

Change-Id: If7fc1a9c2e07605fb36b75258339c7ad0486eba7
Signed-off-by: Jaromir Wysoglad <jwysogla@redhat.com>
2025-10-02 16:38:07 +02:00

74 lines
2.0 KiB
INI

[tox]
minversion = 4.6.0
envlist = py3,pep8
[testenv]
usedevelop = True
setenv =
PYTHONWARNINGS=default::DeprecationWarning
OS_STDOUT_CAPTURE=1
OS_STDERR_CAPTURE=1
OS_TEST_TIMEOUT=60
OS_TEST_PATH = ./aetos/tests
deps = -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = stestr run {posargs} --test-path {env:OS_TEST_PATH}
[testenv:pep8]
skip_install = true
deps =
pre-commit
commands =
pre-commit run -a
[testenv:venv]
commands = {posargs}
[testenv:cover]
setenv =
VIRTUAL_ENV={envdir}
PYTHON=coverage run --source aetos --parallel-mode
commands =
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
[testenv:docs]
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/doc/requirements.txt
commands = sphinx-build --keep-going -b html doc/source doc/build/html
[testenv:releasenotes]
deps = {[testenv:docs]deps}
commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/aetos/aetos-config-generator.conf
[testenv:genpolicy]
extras =
commands =
oslopolicy-sample-generator --config-file=etc/aetos/aetos-policy-generator.conf
[testenv:debug]
commands = oslo_debug_helper {posargs}
[flake8]
show-source = True
# E123, E125 skipped as they are invalid PEP-8.
# W504 line break after binary operator
ignore = E123,E125,W504
builtins = _
# [H106] Do not put vim configuration in source files.
# [H203] Use assertIs(Not)None to check for None.
# [H204] Use assert(Not)Equal to check for equality.
# [H205] Use assert(Greater|Less)(Equal) for comparison.
# [H904] Delay string interpolations at logging calls.
enable-extensions=H106,H203,H204,H205,H904
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build