Enable logging related ruff checks
... to extend the enforced format rules related to logging. Change-Id: I695e1875c6f784c3b8f4612474cd210d3aa71325 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -47,7 +47,7 @@ quote-style = "preserve"
|
||||
docstring-code-format = true
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E4", "E5", "E7", "E9", "F", "S", "UP"]
|
||||
select = ["E4", "E5", "E7", "E9", "F", "G", "LOG", "S", "UP"]
|
||||
ignore = [
|
||||
# we only use asserts for type narrowing
|
||||
"S101",
|
||||
|
||||
4
tox.ini
4
tox.ini
@@ -42,9 +42,7 @@ commands =
|
||||
|
||||
[flake8]
|
||||
# We only enable the hacking (H) checks
|
||||
select = H,O
|
||||
# H904: Delay string interpolations at logging calls
|
||||
enable-extensions = H904
|
||||
select = H
|
||||
# H301 Black will put commas after imports that can't fit on one line
|
||||
ignore = H301
|
||||
show-source = true
|
||||
|
||||
Reference in New Issue
Block a user