Skip to main content

Module project_root

Module project_root 

Source
Expand description

Project root discovery for resolving project-relative paths.

Walks up the directory tree from a starting point looking for a project marker (.git, .rumdl.toml, pyproject.toml, or .markdownlint.json). When a marker is found, its containing directory is returned as the project root. When no marker is found within MAX_DEPTH levels, the start directory is returned as a sensible fallback. The result is canonicalized when possible so callers get a stable, symlink-resolved path.

Functionsยง

discover_project_root_from
Discover the project root by walking up from start_dir.