yera.config.storage.read
TOML reading helpers for config.
Symbols
read_pyproject_yera
read_pyproject_yera() → dict[str, TomlValue]Read the discovered project configuration's [tool.yera] table.
Returns
The Yera project configuration, or an empty mapping when unavailable.
read_pyproject_yera_apps_dir
read_pyproject_yera_apps_dir() → Path | NoneReturn the resolved apps directory from [tool.yera] apps_dir, or None.
The path is resolved relative to the directory containing the discovered
pyproject.toml, not relative to cwd. Returns None when the key is
absent, the value is not a string, or no qualifying pyproject.toml is found.
Returns
The resolved applications directory, or None when not configured.
read_toml_at_path
read_toml_at_path(
path: Path,
) → dict[str, TomlValue]Read a TOML file, returning an empty mapping when it is missing.
Parameters
TOML document path.
Returns
The decoded TOML data, or an empty mapping when no file exists.
read_yera_toml
read_yera_toml() → dict[str, TomlValue]Read yera.toml using the resolved configuration path.
Returns
The decoded global Yera configuration.