mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Enable flake8-logging (LOG) rules
This commit is contained in:
parent
df6ac6044f
commit
e570f56022
@ -120,7 +120,10 @@ select = [
|
|||||||
# flake8-implicit-str-concat ('ISC')
|
# flake8-implicit-str-concat ('ISC')
|
||||||
# NOT YET USED
|
# NOT YET USED
|
||||||
# flake8-logging ('LOG')
|
# flake8-logging ('LOG')
|
||||||
# NOT YET USED
|
"LOG001", # Use `logging.getLogger()` to instantiate loggers
|
||||||
|
"LOG002", # Use `__name__` with `logging.getLogger()`
|
||||||
|
"LOG007", # Use of `logging.exception` with falsy `exc_info`
|
||||||
|
"LOG009", # Use of undocumented `logging.WARN` constant
|
||||||
# pep8-naming ('N')
|
# pep8-naming ('N')
|
||||||
# NOT YET USED
|
# NOT YET USED
|
||||||
# numpy-specific rules ('NPY')
|
# numpy-specific rules ('NPY')
|
||||||
|
@ -264,5 +264,5 @@ class TestSigElementFallbackTransform:
|
|||||||
# extract messages
|
# extract messages
|
||||||
messages = caplog.record_tuples
|
messages = caplog.record_tuples
|
||||||
stdout = [message for _, lvl, message in messages if lvl == logging.INFO]
|
stdout = [message for _, lvl, message in messages if lvl == logging.INFO]
|
||||||
stderr = [message for _, lvl, message in messages if lvl == logging.WARN]
|
stderr = [message for _, lvl, message in messages if lvl == logging.WARNING]
|
||||||
return document, stdout, stderr
|
return document, stdout, stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user