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: Ib6f3a2795ba28b176e008a3c717b7362cec63784 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
4
tox.ini
4
tox.ini
@@ -62,8 +62,10 @@ commands =
|
||||
pre-commit run --all-files --show-diff-on-failure
|
||||
|
||||
[flake8]
|
||||
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
|
||||
show-source = True
|
||||
# H904: Delay string interpolations at logging calls
|
||||
enable-extensions = H904
|
||||
exclude=.venv,.git,.tox,dist,*egg,*.egg-info,build,examples,doc
|
||||
|
||||
[testenv:releasenotes]
|
||||
deps =
|
||||
|
||||
Reference in New Issue
Block a user