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
|
|
@ -1,6 +1,6 @@
|
|||
import contextlib
|
||||
import distutils.spawn
|
||||
import os
|
||||
import os.path
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
import pytest
|
||||
|
|
@ -12,7 +12,7 @@ from pre_commit.util import make_executable
|
|||
|
||||
|
||||
def _echo_exe() -> str:
|
||||
exe = distutils.spawn.find_executable('echo')
|
||||
exe = shutil.which('echo')
|
||||
assert exe is not None
|
||||
return exe
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue