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:
@@ -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",
|
||||
|
||||
2
tox.ini
2
tox.ini
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user