MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / path

Method path

pre_commit/prefix.py:10–11  ·  view source on GitHub ↗
(self, *parts: str)

Source from the content-addressed store, hash-verified

8 prefix_dir: str
9
10 def path(self, *parts: str) -> str:
11 return os.path.normpath(os.path.join(self.prefix_dir, *parts))
12
13 def exists(self, *parts: str) -> bool:
14 return os.path.exists(self.path(*parts))

Callers 15

existsMethod · 0.95
test_pathFunction · 0.95
test_path_multiple_argsFunction · 0.95
environment_dirFunction · 0.80
_prefix_if_file_entryFunction · 0.80
install_environmentFunction · 0.80
_install_dirFunction · 0.80
install_environmentFunction · 0.80
install_environmentFunction · 0.80
run_hookFunction · 0.80
install_environmentFunction · 0.80
run_hookFunction · 0.80

Calls

no outgoing calls