Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.cfg & config.py: make sure we load_dotenv() #46

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ install_requires =
httpx
itsdangerous
pydantic-settings
python-dotenv
# Temporarily, using teuthology without monkey patching the thread
teuthology @ git+https://github.com/ceph/teuthology@teuth-api#egg=teuthology[test]"
# Original: git+https://github.com/ceph/teuthology#egg=teuthology[test]
Expand Down
3 changes: 3 additions & 0 deletions src/teuthology_api/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from functools import lru_cache
from pydantic_settings import BaseSettings, SettingsConfigDict
from dotenv import load_dotenv

load_dotenv()


class APISettings(BaseSettings):
Expand Down
Loading