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