Skip to content

feat: migrate config to pydantic-settings (#005)#27

Merged
bumbaRasch merged 1 commit into
mainfrom
feature/005-config-modernization
Feb 7, 2026
Merged

feat: migrate config to pydantic-settings (#005)#27
bumbaRasch merged 1 commit into
mainfrom
feature/005-config-modernization

Conversation

@bumbaRasch

Copy link
Copy Markdown
Owner
  • Replace dataclass + os.getenv() with pydantic-settings BaseSettings
  • Add typed sub-configs: DatabaseConfig, RedisConfig, QRSizeConfig, WebhookConfig, EventBusConfig
  • Auto-validation of all fields at startup with clear error messages
  • URL-encode DB password in DSN (fixes special chars in passwords)
  • Remove boolean parsing boilerplate (pydantic handles it)
  • Remove duplicate db_dsn/database_url fields (use property)
  • Align Python version to 3.13 across pyproject, Dockerfile, CI
  • Update all consumers: main.py, DI modules, integration tests
  • Suppress UP046/UP047 lint warnings (PEP 695, separate task)
  • All 1667 unit tests pass

- Replace dataclass + os.getenv() with pydantic-settings BaseSettings
- Add typed sub-configs: DatabaseConfig, RedisConfig, QRSizeConfig,
  WebhookConfig, EventBusConfig
- Auto-validation of all fields at startup with clear error messages
- URL-encode DB password in DSN (fixes special chars in passwords)
- Remove boolean parsing boilerplate (pydantic handles it)
- Remove duplicate db_dsn/database_url fields (use property)
- Align Python version to 3.13 across pyproject, Dockerfile, CI
- Update all consumers: main.py, DI modules, integration tests
- Suppress UP046/UP047 lint warnings (PEP 695, separate task)
- All 1667 unit tests pass
@bumbaRasch
bumbaRasch merged commit da84c44 into main Feb 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant