From 4a79dc90f73b53355996b737a49a0d65abe91174 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sun, 1 Feb 2026 00:01:53 +0000 Subject: [PATCH] Initial upload: GitPulse project files --- gitpulse/config.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gitpulse/config.py 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"