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.
This commit is contained in:
AlexKucera committed 2026-06-03 11:04:44 +02:00
1 parent b916c57c1c
commit 6c049d1301
19 files changed
+514

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
librofm:
format: wav
+1
View File
@@ -0,0 +1 @@
librofm: {}
+2
View File
@@ -0,0 +1,2 @@
librofm:
format: m4b_mp3_fallback
+4
View File
@@ -0,0 +1,4 @@
librofm:
username: bad_user
password: bad_pass
format: m4b_mp3_fallback
+5
View File
@@ -0,0 +1,5 @@
librofm:
format: mp3_only
output_dir: /tmp/books
download_extras: false
download_covers: false
+2
View File
@@ -0,0 +1,2 @@
librofm:
format: m4b_mp3_fallback
+2
View File
@@ -0,0 +1,2 @@
librofm:
password: only_password
+3
View File
@@ -0,0 +1,3 @@
librofm:
username: user
password: pass
+5
View File
@@ -0,0 +1,5 @@
librofm:
username: secret_user
password: secret_pass
format: m4b_only
output_dir: /tmp/secret_books
+5
View File
@@ -0,0 +1,5 @@
librofm:
format: m4b_mp3_fallback
output_dir: ./audiobooks
download_extras: true
download_covers: true
+3
View File
@@ -0,0 +1,3 @@
librofm:
username: myuser
password: mypass