Checking¶
check_folder ¶
check_file for each <registry>.yaml of configs, and a problem for any other YAML file there, which nothing reads.
check_file ¶
Every problem of the registry file path, <registry>.yaml, references checked against the registries in beside (its folder by default).
check_registry ¶
check_registry(section: str, entries: dict[str, Any], *, registries: dict[str, dict] | None = None) -> Report
Every problem of the section registry entries ({name: entry}), held in memory.
registries are the other registries by section ({"models": {name:
entry}, ...}), the ones references are checked against; entries stands
for its own section whatever registries holds. None checks no reference.
A section registries lacks that section refers to is said once, as a
warning. The report's path is None and its problems carry no line.
Report
dataclass
¶
Report(path: Path | None, section: str, names: list[str] = list(), problems: list[Problem] = list())
Problem
dataclass
¶
Problem(level: Literal['error', 'warning'], where: str, message: str, fix: str | None = None, line: int | None = None)