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: If5ae6d322d7b1acbb575ec60e8964e43d2e0fd0a
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-03 22:52:48 +09:00
parent 7123abca9b
commit fc79b296fb

View File

@@ -64,6 +64,8 @@ commands =
sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
[flake8]
# H904: Delay string interpolations at logging calls
enable-extensions = H904
# E123, E125 skipped as they are invalid PEP-8.
ignore = E123,E125,W504
show-source = True