Ask a question to get started
Enter to send•Shift+Enter new line
Find the project root by looking for .git directory.
Walks up the directory tree from start_path (or cwd) looking for a .git directory, which indicates the project root.
find_project_root( start_path: str | Path | None = None, ) -> Path | None
start_path
str | Path | None
None
Directory to start searching from. Defaults to current working directory.