MCPcopy Index your code
hub / github.com/github/spec-kit / __init__

Method __init__

src/specify_cli/presets/__init__.py:127–138  ·  view source on GitHub ↗

Load and validate preset manifest. Args: manifest_path: Path to preset.yml file Raises: PresetValidationError: If manifest is invalid

(self, manifest_path: Path)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

_load_yamlMethod · 0.95
_validateMethod · 0.95

Tested by

no test coverage detected