MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / parse_config

Function parse_config

aura/config.py:198–208  ·  view source on GitHub ↗
(pth, default_pth)

Source from the content-addressed store, hash-verified

196
197
198def parse_config(pth, default_pth) -> dict:
199 logger.debug(f"Aura configuration located at {pth}")
200
201 content = get_file_content(pth)
202 if content.startswith("---"):
203 default_cfg = get_file_content(default_pth)
204 content = default_cfg + "\n" + content
205 docs = list(ruamel.yaml.safe_load_all(content))
206 return docs[-1]
207 else:
208 return ruamel.yaml.safe_load(content)
209
210
211def load_config():

Callers 1

load_configFunction · 0.85

Calls 1

get_file_contentFunction · 0.85

Tested by

no test coverage detected