fix: apply ruff formatting to sheets formatting feature

Fixed formatting issues in:
- gcalendar/calendar_tools.py
- gsheets/sheets_tools.py
- tests/gsheets/test_format_sheet_range.py

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Arno
2026-02-04 09:16:10 +00:00
parent 4cecad7d8c
commit a8ed232050
3 changed files with 60 additions and 46 deletions

View File

@@ -405,11 +405,19 @@ async def _format_sheet_range_impl(
Formatted string with confirmation of applied formatting.
"""
# Validate at least one formatting option is provided
has_any_format = any([
background_color, text_color, number_format_type,
wrap_strategy, horizontal_alignment, vertical_alignment,
bold is not None, italic is not None, font_size is not None,
])
has_any_format = any(
[
background_color,
text_color,
number_format_type,
wrap_strategy,
horizontal_alignment,
vertical_alignment,
bold is not None,
italic is not None,
font_size is not None,
]
)
if not has_any_format:
raise UserInputError(
"Provide at least one formatting option (background_color, text_color, "