find_project_root#

scikitplot.mlflow.find_project_root(start=None, *, markers=None, config_path=None)[source]#

Find a project root directory deterministically.

Parameters:
startpathlib.Path or None, default=None

Starting directory. If None, uses the current working directory.

markerssequence[str] or None, default=None

Marker files/directories that define a project root. If None, resolved via get_project_markers (using config_path if provided).

config_pathpathlib.Path or None, default=None

Optional TOML file to read [project].markers from.

Returns:
pathlib.Path

Project root path.

Raises:
FileNotFoundError

If no project root can be found by walking to filesystem root.

Parameters:
Return type:

Path

Notes

Strict rule (no heuristics): - Walk upward from start until a directory containing any marker is found. - If none are found, raise.