ruff: Partially reformat Python with Ruff 0.9 (2025 style).

These are the changes that are backwards compatible with the 2024
style.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit 653b0b0436)
This commit is contained in:
Anders Kaseorg
2025-01-13 15:31:03 -08:00
committed by Tim Abbott
parent 680f318bc0
commit cd485ef162
23 changed files with 38 additions and 62 deletions

View File

@@ -96,8 +96,7 @@ class FrontHookTests(WebhookTestCase):
def test_mention_all(self) -> None:
expected_topic_name = "cnv_keo696"
expected_message = (
"**Leela Turanga** left a comment:\n"
"```quote\n@all Could someone else take this?\n```"
"**Leela Turanga** left a comment:\n```quote\n@all Could someone else take this?\n```"
)
self.check_webhook(
@@ -177,8 +176,7 @@ class FrontHookTests(WebhookTestCase):
def test_mention(self) -> None:
expected_topic_name = "cnv_keocka"
expected_message = (
"**Leela Turanga** left a comment:\n"
"```quote\n@bender Could you take it from here?\n```"
"**Leela Turanga** left a comment:\n```quote\n@bender Could you take it from here?\n```"
)
self.check_webhook(