Merge "ruff: Enable LOG checks"
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -29,6 +29,7 @@ select = [
|
||||
"E9",
|
||||
# pyflakes
|
||||
"F",
|
||||
"LOG",
|
||||
"W",
|
||||
]
|
||||
external = ["H"]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user