feat: add config module with load_config function

Add TOML configuration file support with:
- ConfigError exception class for config-related errors
- load_config() function to parse TOML files with proper error handling
- Tests for missing file and invalid TOML syntax scenarios

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-18 13:31:30 +08:00
parent dfe91e2ce1
commit c1258bda3e
3 changed files with 52 additions and 0 deletions

1
tests/__init__.py Normal file
View File

@@ -0,0 +1 @@
# Tests package