Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 878 Bytes

File metadata and controls

14 lines (12 loc) · 878 Bytes

Changelog

[Unreleased]

Changed

  • Refactored testing factories to be structured as individual model-specific files within a tests/factories/ directory instead of a single monolithic file.
  • Migrated environment configuration from python-decouple to environs (v14.x) with a custom StrictEnv implementation.
  • Breaking Change: Environment variables are now strictly validated by default. Empty or whitespace-only strings will raise a ValidationError unless validate=None is explicitly passed.
  • Migration Guide:
    • Replace from decouple import config with from app.env import env.
    • Use env.str("KEY") instead of config("KEY").
    • Use env.bool("KEY", False) instead of config("KEY", default=False, cast=bool).
    • Use env.int("KEY") instead of config("KEY", cast=int).
    • To allow empty strings: env.str("KEY", validate=None).