Delay string interpolations at logging calls

This is a general best practice which brings (slight) performance
improvements and also structured logging.

Enable the hacking check to enforce it.

Change-Id: Ib6f3a2795ba28b176e008a3c717b7362cec63784
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-03 23:12:02 +09:00
parent 7f3c0b99b7
commit 41ddb20fef

View File

@@ -62,8 +62,10 @@ commands =
pre-commit run --all-files --show-diff-on-failure
[flake8]
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
show-source = True
# H904: Delay string interpolations at logging calls
enable-extensions = H904
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
[testenv:releasenotes]
deps =