Skip to content

Commit

Permalink
Merge pull request #46 from kamoltat/wip-ksirivad-fix-dotenv
Browse files Browse the repository at this point in the history
setup.cfg & config.py: make sure we load_dotenv()
Reviewed by: Vallari Agrawal <[email protected]>
  • Loading branch information
kamoltat authored Feb 7, 2024
2 parents 6b20fd2 + 42e12e3 commit 212fa44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit 212fa44

Please sign in to comment.