File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818** find-project-root** is a lightweight utility that traverses up from a given path until it finds a project marker.
1919
20- - Minimal dependencies — only uses [ project-markers] ( project-markers-gh ) (~ 6 KB module)
20+ - Minimal dependencies — only uses [ project-markers] [ project-markers-gh ] (~ 6 KB module)
2121- Path flexibility — accepts strings, ` Path ` objects, or current working dir
2222- Customizable markers — provide your own or use defaults
2323- Multi-Python support — from Python 2.6 thru 3.15+
@@ -46,7 +46,7 @@ Name | Type | Description | Def
4646------------|-------------------------|------------------------------------|------------------------------------------------------------
4747` path ` | ` str ` , ` Path ` or ` None ` | Starting directory to search from. | ` None ` (current working dir)
4848` max_depth ` | ` int ` | Max levels to traverse up. | ` 9 `
49- ` markers ` | ` List[str] ` or ` None ` | Custom marker files to look for. | [ ` project-markers ` ] ( project-markers-json ) list
49+ ` markers ` | ` List[str] ` or ` None ` | Custom marker files to look for. | [ ` project-markers ` ] [ project-markers-json ] list
5050
5151### Examples:
5252
You can’t perform that action at this time.
0 commit comments