Load and validate preset manifest. Args: manifest_path: Path to preset.yml file Raises: PresetValidationError: If manifest is invalid
(self, manifest_path: Path)
| 125 | REQUIRED_FIELDS = ["schema_version", "preset", "requires", "provides"] |
| 126 | |
| 127 | def __init__(self, manifest_path: Path): |
| 128 | """Load and validate preset manifest. |
| 129 | |
| 130 | Args: |
| 131 | manifest_path: Path to preset.yml file |
| 132 | |
| 133 | Raises: |
| 134 | PresetValidationError: If manifest is invalid |
| 135 | """ |
| 136 | self.path = manifest_path |
| 137 | self.data = self._load_yaml(manifest_path) |
| 138 | self._validate() |
| 139 | |
| 140 | def _load_yaml(self, path: Path) -> dict: |
| 141 | """Load YAML file safely.""" |
nothing calls this directly
no test coverage detected