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

Method star

pre_commit/prefix.py:16–18  ·  view source on GitHub ↗
(self, end: str)

Source from the content-addressed store, hash-verified

14 return os.path.exists(self.path(*parts))
15
16 def star(self, end: str) -> tuple[str, ...]:
17 paths = os.listdir(self.prefix_dir)
18 return tuple(path for path in paths if path.endswith(end))

Callers 4

install_environmentFunction · 0.80
install_environmentFunction · 0.80
install_environmentFunction · 0.80
test_starFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_starFunction · 0.64