Files
os-apply-config/tox.ini
Takashi Kajinami 4e46175617 Delay string interpolations at logging calls
This is a general best practise which brings (slight) performance
improvements and also structured logging.

Enable the hacking check to enforce it.

Change-Id: Ie2e7a5c4056cbdc5ea5ad24972d818749d739f15
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-12-05 22:39:08 +09:00

34 lines
692 B
INI

[tox]
envlist = py3,pep8
minversion = 3.18.0
[testenv]
usedevelop = True
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8
[testenv:cover]
setenv =
PYTHON=coverage run --source os_apply_config --parallel-mode
commands =
coverage erase
stestr run {posargs}
coverage combine
coverage html -d cover
coverage xml -o cover/coverage.xml
coverage report
[testenv:venv]
commands = {posargs}
[flake8]
exclude = .venv,.tox,dist,doc,*.egg
show-source = true
# H904: Delay string interpolations at logging calls
enable-extensions = H904