INNER CODE UNIT · Python
load_meta_schema
nf-core/tools · nf_core/modules/lint/__init__.py:286
def load_meta_schema(self) -> Mapping[str, Any]:
"""
Load the meta.yml JSON schema from the local modules repository cache.
The schema is cached in self.meta_schema to avoid reloading.
Returns:
dict: The meta.yml JSON schema
Raises:
LookupError: If the local module cache is not found
"""
# Return cached schema if already loaded
if self.meta_schema is not None:
return self.meta_schema
if self.modules_repo.local_repo_dir is None:
raise LookupError("Local module cache not found")