MCPcopy
hub / github.com/pex-tool/pex / find_repo_root

Function find_repo_root

scripts/embed-virtualenv.py:15–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14
15def find_repo_root() -> Path:
16 return Path(
17 subprocess.run(
18 args=["git", "rev-parse", "--show-toplevel"],
19 text=True,
20 stdout=subprocess.PIPE,
21 check=True,
22 ).stdout.strip()
23 )
24
25
26def main() -> None:

Callers 1

mainFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected