mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
ruff: Enable logging format rules.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
b08c81b312
commit
5aaa36b8fc
@@ -384,12 +384,6 @@ python_rules = RuleList(
|
||||
"pattern": "import os.path",
|
||||
"description": "Use import os instead of import os.path",
|
||||
},
|
||||
{
|
||||
"pattern": r"(logging|logger)\.warn\W",
|
||||
"description": "Logger.warn is a deprecated alias for Logger.warning; Use 'warning' instead of 'warn'.",
|
||||
"good_lines": ["logging.warning('I am a warning.')", "logger.warning('warning')"],
|
||||
"bad_lines": ["logging.warn('I am a warning.')", "logger.warn('warning')"],
|
||||
},
|
||||
{
|
||||
"pattern": r"\.pk",
|
||||
"exclude_pattern": "[.]_meta[.]pk",
|
||||
|
||||
Reference in New Issue
Block a user