Merge "ruff: Enable LOG checks"

This commit is contained in:
Zuul
2026-06-24 09:57:06 +00:00
committed by Gerrit Code Review
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -83,7 +83,9 @@ class FilePublisher(publisher.ConfigPublisherBase):
path, encoding='utf8', maxBytes=max_bytes,
backupCount=backup_count)
self.publisher_logger = logging.Logger('publisher.file')
# (tkajinam) We need a independent logger, so explicitly create
# a new instance, rather than using getLogger.
self.publisher_logger = logging.Logger('publisher.file') # noqa: LOG001
self.publisher_logger.propagate = False
self.publisher_logger.setLevel(logging.INFO)
rfh.setLevel(logging.INFO)
+1
View File
@@ -29,6 +29,7 @@ select = [
"E9",
# pyflakes
"F",
"LOG",
"W",
]
external = ["H"]
+1 -2
View File
@@ -85,8 +85,7 @@ exclude=.venv,.git,.tox,.eggs,dist,doc,*lib/python*,*egg,build,install-guide
# [H203] Use assertIs(Not)None to check for None.
# [H204] Use assert(Not)Equal to check for equality.
# [H205] Use assert(Greater|Less)(Equal) for comparison.
# [H904] Delay string interpolations at logging calls.
enable-extensions=H106,H203,H204,H205,H904
enable-extensions=H106,H203,H204,H205
show-source = True
[hacking]