From 080f50783f964898acd27db14e6fffb6c3f6549f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 11 Dec 2025 01:56:17 +0900 Subject: [PATCH] Enable logging related ruff checks ... to extend the enforced format rules related to logging. Change-Id: I7d0ee6fdec63ddaace16eaa8423ea6e90407db34 Signed-off-by: Takashi Kajinami --- pyproject.toml | 2 +- tox.ini | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c566255..f194700 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/tox.ini b/tox.ini index a8bfd8c..9ca03b7 100644 --- a/tox.ini +++ b/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