Repository navigation
Add extension governance validation tooling - #122
suraj-ranganath merged 2 commits into
Conversation
|
Claude finished @suraj-ranganath's task in 3m 54s —— View job Code review
I reviewed BlockingNone. ImportantNone. Nits
Test gaps
EEGLAB parity notes
|
|
🤖 Specification for #122 Problem Approach Key code def validate_catalog_entries(
entries: Iterable[Mapping[str, Any]],
*,
options: CatalogValidationOptions | None = None,
) -> CatalogValidationReport:
opts = options or CatalogValidationOptions()
errors: list[CatalogValidationIssue] = []
warnings: list[CatalogValidationIssue] = []
normalized_entries: list[dict[str, Any]] = []
for index, entry in enumerate(entries):
if not isinstance(entry, Mapping):
errors.append(CatalogValidationIssue("Catalog entries must be mapping objects", f"entry[{index}]"))
continue
normalized_entries.append(dict(entry))
_validate_static_entries(normalized_entries, opts, errors, warnings)
_validate_catalog_conflicts(normalized_entries, errors)
if opts.check_installed or opts.check_import:
_validate_installed_entries(normalized_entries, opts, errors)
return CatalogValidationReport(errors=tuple(errors), warnings=tuple(warnings))Tests |
Define extension governance validation for catalog metadata and author-side contract checks. Adds catalog CI tooling, compatibility/trust policy exports, documentation, and regression tests for metadata, dependency, entry-point, import, version, and private/internal cases.
Closes #117