(
name: str,
*,
kind: str = "reference",
root: Path | None = None,
include_checksums: bool = False,
registries: dict[str, Any] | None = None,
)
| 246 | |
| 247 | |
| 248 | def check_named_bundle( |
| 249 | name: str, |
| 250 | *, |
| 251 | kind: str = "reference", |
| 252 | root: Path | None = None, |
| 253 | include_checksums: bool = False, |
| 254 | registries: dict[str, Any] | None = None, |
| 255 | ) -> dict[str, Any]: |
| 256 | registries = registries or load_registries() |
| 257 | collection_name = "references" if kind == "reference" else "databases" |
| 258 | collection = registries.get(collection_name, {}) |
| 259 | if name not in collection: |
| 260 | return { |
| 261 | "bundle": name, |
| 262 | "kind": kind, |
| 263 | "ok": False, |
| 264 | "missing": [], |
| 265 | "error": f"unknown {kind} bundle: {name}", |
| 266 | "available": sorted(collection), |
| 267 | } |
| 268 | return check_expected_files( |
| 269 | bundle_name=name, |
| 270 | bundle=collection[name], |
| 271 | override_root=root, |
| 272 | include_checksums=include_checksums, |
| 273 | ) |
| 274 | |
| 275 | |
| 276 | def normalize_pipeline_name(value: str) -> str: |
no test coverage detected