5.3.1.21.18.3. cli.helpers.project_context.get_project_root

cli.helpers.project_context.get_project_root(path: str = '.') → Path

Find the repository or package root directory.

Parameters:

path – Path to retrieve the project root from.

Returns:

Root path of the git repository or package.

Return type:

Path