Commit Graph
5 Commits
Author SHA1 Message Date
AlexKucera af5ad4953c feat(config): add rename_chapters field, CLI flag, and 3-layer resolution
Add rename_chapters boolean config field following the established
pattern from download_extras/download_covers. Config defaults to
True; YAML supports explicit false; --rename-chapters CLI flag forces
True overriding config. Threaded through sync_run() with resolved value
ready for pipeline wiring in slice 3.

Closes #33
2026-06-05 17:15:16 +02:00
AlexKucera 44fc544a3e Merge branch 'develop' into feature/parallel-downloads 2026-06-04 11:04:19 +02:00
AlexKucera 3ba9f25903 feat(config): add XDG path resolution with CWD fallback
Add _resolve_config_file() searching ~/.config/librofm-downloader/
then CWD. Wire into load_config() so None triggers search. Missing
config.yaml is non-fatal (prints notice, uses defaults); missing
secrets.yaml raises ConfigError listing searched paths. All OS
exceptions wrapped as domain errors. XDG dir auto-created.

Closes #22
2026-06-04 10:00:52 +02:00
AlexKucera 7a0d8c1d18 feat(config): add workers field and --workers CLI flag
Add parallel download worker-count configuration through all three
config layers: Config dataclass (workers=3 default), YAML parsing
with InvalidWorkersError validation, and -w/--workers CLI flag with
three-layer resolution (CLI > config > hardcoded 3). 6 new tests.

Closes #12
2026-06-03 17:07:50 +02:00
AlexKucera 6c049d1301 feat(config): add project scaffolding and config module (closes #2)
Set up Python package with pyproject.toml, venv, and runtime/test
dependencies. Implement config module that loads config.yaml +
secrets.yaml with deep-merge override, validates required fields,
rejects credentials in config.yaml, applies defaults, and returns a
frozen Config dataclass. 25 tests across 7 test classes.
2026-06-03 11:04:44 +02:00