Enable logging related ruff checks

... to extend the enforced format rules related to logging.

Change-Id: I4022ef6c4b913cce8dcca2939ef33dce07bcc08d
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2025-12-11 16:02:26 +09:00
parent 61918a2b83
commit 3fc44893ef
2 changed files with 1 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ disallow_any_generics = false
line-length = 79
[tool.ruff.lint]
select = ["C4", "E4", "E5", "E7", "E9", "F", "S", "UP"]
select = ["C4", "E4", "E5", "E7", "E9", "F", "G", "LOG", "S", "UP"]
ignore = [
# we only use asserts for type narrowing
"S101",

View File

@@ -75,8 +75,6 @@ commands = oslo_debug_helper {posargs}
[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