applied format

This commit is contained in:
HERITAGE-XION 2026-01-10 20:33:05 +01:00
parent fcf234f88f
commit b3074df030
1 changed files with 18 additions and 17 deletions

View File

@ -14,26 +14,27 @@ from rich.console import Console
from src.services.metadata_factory import MetadataFactory
from src.services.report_generator import ReportGenerator
console = Console()
log = logging.getLogger("metadata-scrubber")
def verify(
original_path: Path = typer.Argument(
exists=True,
file_okay=True,
dir_okay=False,
readable=True,
resolve_path=True,
help="Path to the original file (before scrubbing)",
exists = True,
file_okay = True,
dir_okay = False,
readable = True,
resolve_path = True,
help = "Path to the original file (before scrubbing)",
),
processed_path: Path = typer.Argument(
exists=True,
file_okay=True,
dir_okay=False,
readable=True,
resolve_path=True,
help="Path to the processed file (after scrubbing)",
exists = True,
file_okay = True,
dir_okay = False,
readable = True,
resolve_path = True,
help = "Path to the processed file (after scrubbing)",
),
) -> None:
"""
@ -58,10 +59,10 @@ def verify(
# Generate comparison report
generator = ReportGenerator()
report = generator.generate_report(
original_file=str(original_path),
processed_file=str(processed_path),
before_metadata=before_metadata,
after_metadata=after_metadata,
original_file = str(original_path),
processed_file = str(processed_path),
before_metadata = before_metadata,
after_metadata = after_metadata,
)
# Render the report
@ -75,4 +76,4 @@ def verify(
console.print(f"[red]Error during verification:[/red] {e}")
if log.isEnabledFor(logging.DEBUG):
console.print_exception()
raise typer.Exit(code=1)
raise typer.Exit(code = 1)