From 1a72794f5b2cfc5b9affd07d6b915f6458db59df Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Wed, 3 Dec 2025 23:13:19 +0900 Subject: [PATCH] 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 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 50b4c85b6..a8175f82a 100644 --- a/tox.ini +++ b/tox.ini @@ -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]