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(usingconfig_pathif provided).- config_pathpathlib.Path or None, default=None
Optional TOML file to read
[project].markersfrom.
- Returns:
- pathlib.Path
Project root path.
- Raises:
- FileNotFoundError
If no project root can be found by walking to filesystem root.
- Parameters:
- Return type:
Notes
Strict rule (no heuristics): - Walk upward from
startuntil a directory containing any marker is found. - If none are found, raise.