refactor: Enable G logging rules and comprehensive ruff improvements (#35081)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Maxime Beauchemin
2025-09-15 12:42:49 -07:00
committed by GitHub
parent e1a2e4843a
commit 088ecdd0bf
47 changed files with 340 additions and 184 deletions

View File

@@ -47,8 +47,9 @@ class ThemeDAO(BaseDAO[Theme]):
if len(system_defaults) > 1:
logger.warning(
f"Multiple system default themes found ({len(system_defaults)}), "
"falling back to config theme"
"Multiple system default themes found (%s), "
"falling back to config theme",
len(system_defaults),
)
# Fallback to is_system=True theme with name 'THEME_DEFAULT'
@@ -75,8 +76,8 @@ class ThemeDAO(BaseDAO[Theme]):
if len(system_darks) > 1:
logger.warning(
f"Multiple system dark themes found ({len(system_darks)}), "
"falling back to config theme"
"Multiple system dark themes found (%s), falling back to config theme",
len(system_darks),
)
# Fallback to is_system=True theme with name 'THEME_DARK'