Lint-Fixes, process-Disc-Validierung und Forgejo-CI
- ruff: Import-Sortierung, unused imports, Zeilenlängen behoben - cli.py: _check_disc_counts_or_exit() extrahiert; auch process-Befehl prüft jetzt Disc-Anzahlen vor dem Umbenennen - .forgejo/workflows/ci.yml: ruff + pytest auf push/PR gegen main Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
88b89fbb50
commit
70c096cde4
6 changed files with 73 additions and 40 deletions
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from musiksammlung.models import Album, Disc, Track
|
||||
from musiksammlung.organizer import (
|
||||
_sanitize_filename,
|
||||
|
|
@ -122,7 +120,10 @@ class TestCheckDiscCounts:
|
|||
album="B",
|
||||
discs=[
|
||||
Disc(disc_number=1, tracks=[Track(track_number=1, title="T1")]),
|
||||
Disc(disc_number=2, tracks=[Track(track_number=1, title="T2"), Track(track_number=2, title="T3")]),
|
||||
Disc(
|
||||
disc_number=2,
|
||||
tracks=[Track(track_number=1, title="T2"), Track(track_number=2, title="T3")],
|
||||
),
|
||||
],
|
||||
)
|
||||
results = check_disc_counts(album, tmp_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue