From 8ebacd0180c3ab07e3fd3e532508cfcd77fbf087 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 9 Nov 2023 15:11:41 -0800 Subject: [PATCH] ruff: Reformat with ruff 0.1.4. Signed-off-by: Anders Kaseorg --- requirements.txt | 2 +- zulip_bots/zulip_bots/bots/beeminder/beeminder.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 78970ab39..8f2511090 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ twine mock pytest pytest-cov -ruff~=0.1.3 +ruff~=0.1.4 -e ./zulip -e ./zulip_bots -e ./zulip_botserver diff --git a/zulip_bots/zulip_bots/bots/beeminder/beeminder.py b/zulip_bots/zulip_bots/bots/beeminder/beeminder.py index 900706a23..cda09ce78 100644 --- a/zulip_bots/zulip_bots/bots/beeminder/beeminder.py +++ b/zulip_bots/zulip_bots/bots/beeminder/beeminder.py @@ -67,9 +67,7 @@ def get_beeminder_response(message_content: str, config_info: Dict[str, str]) -> return f"Error occured : {r.status_code}" # Occures in case of unprocessable entity else: datapoint_link = f"https://www.beeminder.com/{username}/{goalname}" - return ( - f"[Datapoint]({datapoint_link}) created." - ) # Handles the case of successful datapoint creation + return f"[Datapoint]({datapoint_link}) created." # Handles the case of successful datapoint creation except ConnectionError: logging.exception("Error connecting to Beeminder") return "Uh-Oh, couldn't process the request \