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: I662cd623844f51a22787811368c6f36a4ba88aea Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
5
tox.ini
5
tox.ini
@@ -43,15 +43,16 @@ commands =
|
|||||||
coverage report --show-missing
|
coverage report --show-missing
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
|
show-source = True
|
||||||
|
# H904: Delay string interpolations at logging calls
|
||||||
|
enable-extensions = H106,H203,H904
|
||||||
# E123, E125 skipped as they are invalid PEP-8.
|
# E123, E125 skipped as they are invalid PEP-8.
|
||||||
# [H106] Don’t put vim configuration in source files
|
# [H106] Don’t put vim configuration in source files
|
||||||
# [H203] Use assertIs(Not)None to check for None
|
# [H203] Use assertIs(Not)None to check for None
|
||||||
# [W504] line break after binary operator
|
# [W504] line break after binary operator
|
||||||
show-source = True
|
|
||||||
ignore = E123,E125,W504
|
ignore = E123,E125,W504
|
||||||
builtins = _
|
builtins = _
|
||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||||||
enable-extensions = H106,H203
|
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions =
|
import_exceptions =
|
||||||
|
|||||||
Reference in New Issue
Block a user