MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / load_config

Function load_config

plain2code_read_config.py:9–16  ·  view source on GitHub ↗

Load configuration from YAML file.

(config_file: str)

Source from the content-addressed store, hash-verified

7
8
9def load_config(config_file: str) -> Dict[str, Any]:
10 """Load configuration from YAML file."""
11 try:
12 with open(config_file, "r") as f:
13 return yaml.safe_load(f)
14 except Exception as e:
15 console.error(f"Error loading config file: {e}. Please check the config file path and the config file content.")
16 raise e
17
18
19def validate_config(config: Dict[str, Any], parser: ArgumentParser) -> None:

Callers 1

get_args_from_configFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected