bump python version, ruff check
This commit is contained in:
@@ -4,6 +4,7 @@ from omegaconf import OmegaConf, DictConfig
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
@dataclass
|
||||
class OpenAI:
|
||||
api_key: str
|
||||
@@ -15,6 +16,7 @@ class OpenAI:
|
||||
def _setattr(self, name: str, value: Any):
|
||||
setattr(self, name, value)
|
||||
|
||||
|
||||
@dataclass
|
||||
class Zotero:
|
||||
api_key: str
|
||||
@@ -33,6 +35,7 @@ class Database:
|
||||
name: str
|
||||
path: Union[str, Path, None]
|
||||
temp: Union[str, Path, None]
|
||||
|
||||
def getattr(self, name: str):
|
||||
return getattr(self, name)
|
||||
|
||||
@@ -45,6 +48,7 @@ class Database:
|
||||
if isinstance(self.temp, str):
|
||||
self.temp = Path(self.temp).expanduser()
|
||||
|
||||
|
||||
@dataclass
|
||||
class Mail:
|
||||
smtp_server: str
|
||||
@@ -138,6 +142,7 @@ class Config:
|
||||
|
||||
_config: Optional[DictConfig] = None
|
||||
config_exists: bool = True
|
||||
|
||||
def __init__(self, config_path: str):
|
||||
"""
|
||||
Loads the configuration file and stores it for future access.
|
||||
|
||||
Reference in New Issue
Block a user