yera.config.inspection
Inspect the global Yera configuration without applying runtime resolution.
This module provides a narrow interface for determining whether the global
yera.toml file exists and can be parsed. It does not load project-level
overrides or resolve active profiles, providers, or models.
Symbols
ConfigInspection
Result of inspecting the global Yera configuration file.
Attributes
Resolved path inspected by the operation.
State determined from file existence, TOML parsing, and schema validation.
Parsed TOML data when parsing succeeds; otherwise None.
Top-level section that failed schema validation; otherwise
None.
Parsing or validation diagnostic when inspection fails;
otherwise None.
ConfigStatus
str, EnumState of the global Yera configuration file.
Attributes
The configured yera.toml path does not contain a file.
The file contains syntactically valid TOML.
The file exists but cannot be parsed as TOML.
The file contains valid TOML but invalid Yera configuration.
inspect_yera_toml
inspect_yera_toml() → ConfigInspectionInspect the global Yera configuration file.
Resolves the global yera.toml path, checks whether the file exists,
and parses its TOML content when present. Parse failures are represented
in the returned result rather than raised.
Returns
The resolved path, inspection status, and any parsed data or parsing diagnostic.
Raises
If the file exists but cannot be accessed.