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:
Takashi Kajinami
2025-12-11 01:56:17 +09:00
parent d9cc2063b1
commit 080f50783f
2 changed files with 1 additions and 3 deletions

View File

@@ -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"]

View File

@@ -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