Enable logging related ruff checks
... to extend the enforced format rules related to logging. Change-Id: I7d0ee6fdec63ddaace16eaa8423ea6e90407db34 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -59,7 +59,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"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"oslo_context/tests/*" = ["S"]
|
||||
|
||||
2
tox.ini
2
tox.ini
@@ -58,8 +58,6 @@ commands =
|
||||
[flake8]
|
||||
# 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
|
||||
# H404 Docstrings don't always start with a newline
|
||||
# H405 Multiline docstrings are okay
|
||||
|
||||
Reference in New Issue
Block a user