Coverage for zombie_nomnom_api/__init__.py: 100%

16 statements  

« prev     ^ index     » next       coverage.py v7.6.9, created at 2024-12-07 04:25 +0000

1""" 

2.. include:: ../README.md 

3 :start-line: 2 

4 :end-before: Contribution 

5""" 

6 

7import logging 

8from pydantic_settings import BaseSettings 

9from zombie_nomnom_api.game import GameMakerType 

10 

11 

12class Configs(BaseSettings): 

13 cors_methods: set[str] = ["*"] 

14 cors_headers: set[str] = ["*"] 

15 cors_origins: set[str] = ["*"] 

16 cors_allow_credentials: bool = True 

17 log_level: str = "DEBUG" 

18 game_maker_type: GameMakerType = GameMakerType.memory 

19 oauth_issuer: str = "" 

20 oauth_domain: str = "" 

21 oauth_algorithms: str = "" 

22 oauth_audience: str = "" 

23 

24 

25configs = Configs() 

26 

27 

28logging.basicConfig(level=configs.log_level)