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

Function parse_filename

pre_commit/parse_shebang.py:15–19  ·  view source on GitHub ↗
(filename: str)

Source from the content-addressed store, hash-verified

13
14
15def parse_filename(filename: str) -> tuple[str, ...]:
16 if not os.path.exists(filename):
17 return ()
18 else:
19 return parse_shebang_from_file(filename)
20
21
22def find_executable(

Callers 1

normalize_cmdFunction · 0.85

Calls 1

existsMethod · 0.80

Tested by

no test coverage detected