ruff: Enable new lints DTZ, ISC, PIE, PLW, Q, S, SIM.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-01-02 17:18:00 -08:00
committed by Tim Abbott
parent 17300f196c
commit 2afdb46095
6 changed files with 20 additions and 13 deletions

View File

@@ -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",