Files
7000pctAUTO fc3ecd3f6e
Some checks failed
CI / test (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
fix: resolve CI build failures
2026-01-31 04:00:19 +00:00

17 lines
381 B
Python

import os
import yaml
def load_config():
"""Load configuration from file."""
config_paths = [
'.git-commit-ai/config.yaml',
os.path.expanduser('~/.config/git-commit-ai/config.yaml')
]
for path in config_paths:
if os.path.exists(path):
with open(path) as f:
return yaml.safe_load(f) or {}
return {}