undocumented-warn (LOG009)
Added in v0.2.0 · Related issues · View source
Derived from the flake8-logging linter.
Fix is sometimes available.
What it does
Checks for uses of logging.WARN.
Why is this bad?
The logging.WARN constant is an undocumented alias for logging.WARNING.
Although it’s not explicitly deprecated, logging.WARN is not mentioned
in the logging documentation. Prefer logging.WARNING instead.
Example
Use instead: