Load configuration from YAML file.
(config_file: str)
| 7 | |
| 8 | |
| 9 | def 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 | |
| 19 | def validate_config(config: Dict[str, Any], parser: ArgumentParser) -> None: |
no test coverage detected