Walks up the directory tree from path until a directory satisfying
criterion is found. Thin wrapper around
find_root using pyprojroot criteria.
Arguments
- criterion
A
root_criterionobject, typically one of theis_*criteria exported by this package (e.g. is_uv_project, is_python_project).- path
Character scalar. Starting directory for the upward search. Defaults to
".".