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: I87f816e1ccb6d38760dd252a3c7b678e3f56da6c
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-05 22:40:09 +09:00
parent 565c8d9850
commit 9bfc52b504

View File

@@ -36,6 +36,8 @@ allowlist_externals =
{toxinidir}/tools/tests/run_tests.sh
[flake8]
# H904: Delay string interpolations at logging calls
enable-extensions = H904
ignore = E125
exclude = .venv,.tox,dist,doc,*.egg
show-source = true