(yaml_file: Union[str, Path])
| 40 | |
| 41 | |
| 42 | def _resolve_yaml_path(yaml_file: Union[str, Path]) -> Path: |
| 43 | candidate = Path(yaml_file).expanduser() |
| 44 | if candidate.is_absolute(): |
| 45 | return candidate |
| 46 | if candidate.exists(): |
| 47 | return candidate |
| 48 | repo_root = Path(__file__).resolve().parents[2] |
| 49 | yaml_root = YAML_DIR if YAML_DIR.is_absolute() else (repo_root / YAML_DIR) |
| 50 | return (yaml_root / candidate).expanduser() |
| 51 | |
| 52 | |
| 53 | def _build_task_input( |
no test coverage detected