From ca669db9ac9a222286a008d780aa6be9989298c9 Mon Sep 17 00:00:00 2001 From: Ron Klinkien Date: Fri, 18 Sep 2026 09:53:01 +0200 Subject: [PATCH] chore: fix formatting nits from PR #432 Two lines from the menstrual-writes PR didn't match ruff format's output (an unnecessary wrap in demo.py's workout-upload error message, and in get_menstrual_reports' URL construction) - cosmetic only, no behavior change. --- demo.py | 4 +--- garminconnect/__init__.py | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/demo.py b/demo.py index 7416025f..77bd052e 100755 --- a/demo.py +++ b/demo.py @@ -2461,9 +2461,7 @@ def clean_step_ids(workout_segments): except FileNotFoundError: print(f"❌ File not found: {config.workoutfile}") - print( - "ℹ️ Please ensure the workout JSON file exists in the test_data directory" - ) + print("ℹ️ Please ensure the workout JSON file exists in the test_data directory") except json.JSONDecodeError as e: print(f"❌ Invalid JSON format in {config.workoutfile}: {e}") print("ℹ️ Please check the JSON file format") diff --git a/garminconnect/__init__.py b/garminconnect/__init__.py index ab1c8a4f..0d6ab118 100644 --- a/garminconnect/__init__.py +++ b/garminconnect/__init__.py @@ -3906,8 +3906,7 @@ def get_menstrual_reports( today_calendar_date, "today_calendar_date" ) url = ( - f"{self.garmin_connect_menstrual_reports_url}/" - f"{number_of_cycles}/{fordate}" + f"{self.garmin_connect_menstrual_reports_url}/{number_of_cycles}/{fordate}" ) params = { "next": str(next_report).lower(),