Compare commits
14 Commits
48410d39da
...
9bb799a785
| Author | SHA1 | Date | |
|---|---|---|---|
| 9bb799a785 | |||
|
|
8a556b18ea | ||
|
|
1674efd587 | ||
|
|
44d14d94de | ||
| c0a44285e6 | |||
| 7c340fa172 | |||
| 3f339b3dae | |||
| ca4063443d | |||
| 64f26c596d | |||
| 9b3bf4aa4e | |||
| 42cef23957 | |||
| 32f10c3197 | |||
| 2c04c70e78 | |||
|
|
2bc0a19ada |
@@ -27,8 +27,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Python-Abhängigkeiten prüfen (pip-audit)
|
- name: Python-Abhängigkeiten prüfen (pip-audit)
|
||||||
run: |
|
run: |
|
||||||
|
python -m venv .venv
|
||||||
|
. .venv/bin/activate
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pip-audit
|
python -m pip install pip-audit
|
||||||
pip-audit -r requirements.txt
|
pip-audit -r requirements.txt
|
||||||
|
|
||||||
- name: Docker Buildx einrichten
|
- name: Docker Buildx einrichten
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from pydantic import field_validator
|
||||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||||
|
|
||||||
|
|
||||||
@@ -25,6 +26,20 @@ class Settings(BaseSettings):
|
|||||||
|
|
||||||
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
|
||||||
|
|
||||||
|
@field_validator(
|
||||||
|
"access_token_expire_minutes",
|
||||||
|
"hsts_max_age",
|
||||||
|
"editor_tip_max_length",
|
||||||
|
"highlights_max_length",
|
||||||
|
mode="before",
|
||||||
|
)
|
||||||
|
@classmethod
|
||||||
|
def _parse_int_with_inline_comment(cls, value):
|
||||||
|
if isinstance(value, str):
|
||||||
|
cleaned = value.split("#", 1)[0].strip()
|
||||||
|
return int(cleaned) if cleaned else value
|
||||||
|
return value
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_production(self) -> bool:
|
def is_production(self) -> bool:
|
||||||
return self.environment.lower() == "production"
|
return self.environment.lower() == "production"
|
||||||
|
|||||||
Reference in New Issue
Block a user