mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
ruff: Enable new lints DTZ, ISC, PIE, PLW, Q, S, SIM.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
17300f196c
commit
2afdb46095
@@ -376,12 +376,6 @@ python_rules = RuleList(
|
||||
},
|
||||
"description": "Please use access_stream_by_*() to fetch Stream objects",
|
||||
},
|
||||
{
|
||||
"pattern": "datetime[.](now|utcnow)",
|
||||
"include_only": {"zerver/", "analytics/"},
|
||||
"description": "Don't use datetime in backend code.\n"
|
||||
"See https://zulip.readthedocs.io/en/latest/contributing/code-style.html#naive-datetime-objects",
|
||||
},
|
||||
{
|
||||
"pattern": "from os.path",
|
||||
"description": "Don't use from when importing from the standard library",
|
||||
|
||||
Reference in New Issue
Block a user