Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
15
def
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
22
def
find_executable(
Callers
1
normalize_cmd
Function · 0.85
Calls
1
exists
Method · 0.80
Tested by
no test coverage detected