Skip to content

Commit 78601ea

Browse files
docs: standardize environment variable tables and refactor settings
- Add 'Required' and 'Default' columns to all environment variable documentation tables. - Refactor all Settings classes to inherit from a new CommonSettings base class in templates/settings.py. - Consolidate 'service_name', 'metrics_namespace', and 'log_level' into CommonSettings. - Ensure all templates have template-specific defaults in their Settings subclasses. - Fix Environment variables table ordering in EventBridge documentation. - Update EventBridge property tests to reflect optional settings. - Document UX learnings in .jules/palette.md.
1 parent d657e6b commit 78601ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

templates/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
from pydantic import ConfigDict, Field
1+
from pydantic import Field
22
from pydantic_settings import BaseSettings
33

44

55
class CommonSettings(BaseSettings):
66
"""Common settings shared by all Lambda functions."""
77

8-
model_config = ConfigDict(case_sensitive=False)
9-
108
service_name: str = Field(description="Powertools service name")
119
metrics_namespace: str = Field(description="Powertools metrics namespace")
1210
log_level: str = Field(description="Logging level", default="INFO")

0 commit comments

Comments
 (0)