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:
2
tox.ini
2
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user