18 lines
426 B
Python
18 lines
426 B
Python
"""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"
|