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: I08d94047fb6c5ddd74ba398542b5a9ed7aaf31b8
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-05 00:37:11 +09:00
parent 89b8e85ad8
commit 54f8f2aef6

View File

@@ -55,5 +55,7 @@ commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenote
[flake8]
builtins = _
exclude = .venv,.git,.tox,dist,doc,*.egg
# [H904] Delay string interpolations at logging calls.
enable-extensions=H904
# W504 line break after binary operator
ignore = W504