mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-12 13:38:34 +03:00
chore: rename config.py => settings.py
This commit is contained in:
20
app/shared/settings.py
Normal file
20
app/shared/settings.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import sys
|
||||
|
||||
from pydantic import BaseSettings
|
||||
|
||||
|
||||
class Settings(BaseSettings):
|
||||
API_SECRET: str
|
||||
DATABASE_URI: str
|
||||
ENVIRONMENT: str
|
||||
|
||||
# derived settings
|
||||
BROKER_URL: str
|
||||
|
||||
|
||||
if "pytest" in sys.modules:
|
||||
settings = Settings(
|
||||
_env_file=".env.test", _env_file_encoding="utf-8"
|
||||
) # type: ignore
|
||||
else:
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user