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: I235094292542e56aab17ec2153c6a051542dae9d
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-03 23:13:19 +09:00
parent c126290466
commit 1a72794f5b

View File

@@ -68,6 +68,8 @@ commands = {posargs}
[flake8]
builtins = _
exclude = .venv,.tox,dist,doc,*egg,.git,build,tools
# H904: Delay string interpolations at logging calls
enable-extensions = H904
ignore = E305,E402,E721,E731,E741,W503,W504
[hacking]