Skip to content

settings

settings

HooksSettings

Bases: BaseSettings

Base settings class for hook configuration, backed by environment variables with HOOKS_ prefix.

AutoConf

Automatic settings builder that infers a HooksSettings subclass from a conf module's attributes.

build_settings

build_settings(
    module: ModuleType, prefix: str = "HOOKS_"
) -> BaseSettings

Build a settings instance from a conf module, using an explicit HooksSettings subclass or auto-inferring fields.