(config: str)
| 1996 | |
| 1997 | |
| 1998 | def _load_config(config: str) -> dict: |
| 1999 | config_path = Path(config) |
| 2000 | if not config_path.exists(): |
| 2001 | raise FileNotFoundError(f"Config {config} is not found. Please make sure that the file exists.") |
| 2002 | |
| 2003 | with open(config) as f: |
| 2004 | project_config = YAML(typ="safe", pure=True).load(f) |
| 2005 | |
| 2006 | return project_config |
no test coverage detected