Skip to content

Commit

Permalink
Allow plugins to add extra configuration values
Browse files Browse the repository at this point in the history
  • Loading branch information
Francia Csaba committed Aug 1, 2024
1 parent 76ffd33 commit 8995309
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions amarillo/services/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from typing import List
from pydantic import ConfigDict
from pydantic_settings import BaseSettings


Expand All @@ -10,4 +11,6 @@ class Config(BaseSettings):
graphhopper_base_url: str = 'https://api.mfdz.de/gh'
stop_sources_file: str = 'conf/stop_sources.json'

model_config = ConfigDict(extra='allow') # Allow plugins to add extra values

config = Config(_env_file='config', _env_file_encoding='utf-8')

0 comments on commit 8995309

Please sign in to comment.