mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move most of the actual hook script into pre-commit hook-impl
This commit is contained in:
parent
93152218a7
commit
95b8d71bd9
10 changed files with 471 additions and 201 deletions
|
|
@ -57,7 +57,7 @@ def _find_by_sys_executable() -> Optional[str]:
|
|||
def _norm(path: str) -> Optional[str]:
|
||||
_, exe = os.path.split(path.lower())
|
||||
exe, _, _ = exe.partition('.exe')
|
||||
if find_executable(exe) and exe not in {'python', 'pythonw'}:
|
||||
if exe not in {'python', 'pythonw'} and find_executable(exe):
|
||||
return exe
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue