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: I03f013998ba127f2a9d31c9eded04aa15edd97ea
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-03 23:03:02 +09:00
parent c83131ed3e
commit 9811dd9c1f

View File

@@ -44,6 +44,8 @@ show-source = True
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,__init__.py
# We only enable the hacking (H) checks
select = H
# H904: Delay string interpolations at logging calls
enable-extensions = H904
# H301 Black will put commas after imports that can't fit on one line
ignore = H301