chore: ruff check

This commit is contained in:
Benexl
2025-07-26 10:57:05 +03:00
parent 75e67c22d2
commit 1c95d45be4
14 changed files with 8 additions and 22 deletions

View File

@@ -575,7 +575,7 @@ def _get_available_episodes(provider, anime, config, feedback):
)
if not provider_anime_data:
feedback.warning(f"Failed to get anime details from provider")
feedback.warning("Failed to get anime details from provider")
return []
# Check all available translation types
@@ -967,7 +967,7 @@ def _show_final_statistics(download_service, feedback):
stats = download_service.get_download_statistics()
if stats:
console.print(f"\n[bold blue]Overall Download Statistics:[/bold blue]")
console.print("\n[bold blue]Overall Download Statistics:[/bold blue]")
console.print(f"Total episodes tracked: {stats.get('total_episodes', 0)}")
console.print(f"Successfully downloaded: {stats.get('downloaded', 0)}")
console.print(f"Failed downloads: {stats.get('failed', 0)}")

View File

@@ -16,7 +16,6 @@ def stats(config: "AppConfig"):
from rich.markdown import Markdown
from rich.panel import Panel
from .....core.exceptions import FastAnimeError
from .....libs.media_api.api import create_api_client
from ....service.auth import AuthService
from ....service.feedback import FeedbackService

View File

@@ -2,7 +2,6 @@
Registry backup command - create full backups of the registry
"""
import shutil
import tarfile
from pathlib import Path
from datetime import datetime

View File

@@ -346,8 +346,6 @@ def _import_data(registry_service, data: dict, merge: bool, dry_run: bool, feedb
"""Import data into the registry."""
from .....libs.media_api.types import (
MediaFormat,
MediaGenre,
MediaStatus,
MediaType,
)

View File

@@ -124,7 +124,7 @@ def update(
else:
latest_version = release_json.get("tag_name", "unknown")
print(f"[yellow]Update available: {latest_version}[/]")
print(f"[dim]Run 'fastanime update' to update[/]")
print("[dim]Run 'fastanime update' to update[/]")
sys.exit(1)
else:
print("[cyan]Checking for updates and updating if necessary...[/]")