mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-12 11:28:33 -05:00
Implement a simplified xargs in python
This commit is contained in:
@@ -2,8 +2,8 @@ from __future__ import unicode_literals
|
||||
|
||||
from sys import platform
|
||||
|
||||
from pre_commit.languages import helpers
|
||||
from pre_commit.util import shell_escape
|
||||
from pre_commit.xargs import xargs
|
||||
|
||||
|
||||
ENVIRONMENT_DIR = None
|
||||
@@ -24,7 +24,7 @@ def run_hook(repo_cmd_runner, hook, file_args):
|
||||
)
|
||||
|
||||
# For PCRE the entry is the regular expression to match
|
||||
return helpers.run_hook(
|
||||
return xargs(
|
||||
(
|
||||
'sh', '-c',
|
||||
# Grep usually returns 0 for matches, and nonzero for non-matches
|
||||
|
||||
Reference in New Issue
Block a user