Add centralized path management and sample database generator

Co-authored-by: elisiariocouto <818914+elisiariocouto@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-09-11 22:20:25 +00:00
committed by Elisiário Couto
parent 0c030efef2
commit e9711339bd
9 changed files with 635 additions and 68 deletions

View File

@@ -6,6 +6,7 @@ from typing import Dict, Any, List
from loguru import logger
from leggend.config import config
from leggen.utils.paths import path_manager
def _log_rate_limits(response):
@@ -39,8 +40,8 @@ class GoCardlessService:
if self._token:
return self._token
# Use ~/.config/leggen for consistency with main config
auth_file = Path.home() / ".config" / "leggen" / "auth.json"
# Use path manager for auth file
auth_file = path_manager.get_auth_file_path()
if auth_file.exists():
try: