yera.config.storage.paths

Path resolution helpers for config files.

Symbols

def discover_pyproject_for_read — Discover the nearest readable Yera project configuration.
def discover_pyproject_for_write — Discover the nearest writable project configuration.
def yera_toml_path — Return the resolved global configuration path.

discover_pyproject_for_read

discover_pyproject_for_read() → Path | None

Discover the nearest readable Yera project configuration.

Returns

type: Path | None

The nearest pyproject.toml containing [tool.yera], or None.

discover_pyproject_for_write

discover_pyproject_for_write() → Path | None

Discover the nearest writable project configuration.

Returns

type: Path | None

The nearest pyproject.toml, regardless of its contents, or None.

yera_toml_path

yera_toml_path() → Path

Return the resolved global configuration path.

Returns

type: Path

The configured test override or the Yera home yera.toml path.