mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
refactor: Enable G logging rules and comprehensive ruff improvements (#35081)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
e1a2e4843a
commit
088ecdd0bf
@@ -59,9 +59,8 @@ class SeedSystemThemesCommand(BaseCommand):
|
||||
theme_config = json.loads(referenced_theme.json_data)
|
||||
# Add a note about the theme being copied from UUID reference
|
||||
theme_config["NOTE"] = (
|
||||
f"Copied at startup from theme UUID {original_uuid} "
|
||||
f"based on config reference"
|
||||
)
|
||||
"Copied at startup from theme UUID %s based on config reference"
|
||||
) % original_uuid
|
||||
logger.debug(
|
||||
"Copied theme definition from UUID %s for system theme %s",
|
||||
original_uuid,
|
||||
@@ -93,7 +92,7 @@ class SeedSystemThemesCommand(BaseCommand):
|
||||
|
||||
if existing_theme:
|
||||
existing_theme.json_data = json_data
|
||||
logger.debug(f"Updated system theme: {theme_name}")
|
||||
logger.debug("Updated system theme: %s", theme_name)
|
||||
else:
|
||||
new_theme = Theme(
|
||||
theme_name=theme_name,
|
||||
@@ -101,7 +100,7 @@ class SeedSystemThemesCommand(BaseCommand):
|
||||
is_system=True,
|
||||
)
|
||||
db.session.add(new_theme)
|
||||
logger.debug(f"Created system theme: {theme_name}")
|
||||
logger.debug("Created system theme: %s", theme_name)
|
||||
|
||||
def validate(self) -> None:
|
||||
"""Validate that the command can be executed."""
|
||||
|
||||
Reference in New Issue
Block a user