diff --git a/gitpulse/config.py b/gitpulse/config.py new file mode 100644 index 0000000..725056f --- /dev/null +++ b/gitpulse/config.py @@ -0,0 +1,17 @@ +"""Configuration management for GitPulse.""" + +from dataclasses import dataclass +from pathlib import Path + + +@dataclass +class Config: + """Configuration for GitPulse.""" + + default_path: str = "." + cache_enabled: bool = True + config_path: Path = None + + def __post_init__(self) -> None: + if self.config_path is None: + self.config_path = Path.home() / ".config" / "gitpulse" / "config.toml"