manifest
Chargement et validation du manifeste OKF YAML.
OKF manifest loading and validation.
- class okflint.manifest.BaseConfig(name, roots, reserved_files, external_refs)[source]
Bases:
objectDocumentary base configuration.
- roots: list[RootConfig]
- class okflint.manifest.HygieneConfig(broken_links, split_candidates, reserved_files, unknown_fields, split)[source]
Bases:
objectConfiguration of hygiene checks (opt-in).
- split: SplitConfig
- class okflint.manifest.Manifest(okf_version, base, profile, hygiene)[source]
Bases:
objectLoaded and validated OKF manifest.
- base: BaseConfig
- hygiene: HygieneConfig | None
- profile: ProfileConfig | None
- exception okflint.manifest.ManifestError[source]
Bases:
ExceptionInvalid or unreadable OKF manifest.
- class okflint.manifest.ProfileConfig(types, date_fields)[source]
Bases:
objectProfile configuration of the documentary base.
- types: dict[str, TypeConfig]
- class okflint.manifest.RootConfig(path, exclude_patterns)[source]
Bases:
objectConfiguration of a single root in the documentary base.
- class okflint.manifest.SplitConfig(min_lines, exempt_types, exempt_paths, tau=0.15)[source]
Bases:
objectGate configuration for the S202 semantic cohesion check.
- class okflint.manifest.TypeConfig(required, optional, controlled_values, aliases)[source]
Bases:
objectConfiguration of a concept type declared in the profile.
- okflint.manifest.load_manifest(path)[source]
Load and validate an OKF YAML manifest.
- Parameters:
path (
Path) – Path to the YAML file.- Return type:
- Returns:
Typed and validated Manifest.
- Raises:
ManifestError – If the file is unreadable, invalid, or violates constraints.