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

@@ -461,7 +461,7 @@ def main(options: argparse.Namespace) -> NoReturn:
activate_this = "/srv/zulip-py3-venv/bin/activate_this.py"
provision_inner = os.path.join(ZULIP_PATH, "tools", "lib", "provision_inner.py")
with open(activate_this) as f:
exec(f.read(), dict(__file__=activate_this))
exec(f.read(), dict(__file__=activate_this)) # noqa: S102
os.execvp(
provision_inner,
[