Minor cleanups

This commit is contained in:
Anthony Sottile 2018-11-01 18:05:36 -07:00
parent 9125439c3a
commit 6bac405d40
12 changed files with 17 additions and 63 deletions

View file

@ -4,7 +4,6 @@ from __future__ import unicode_literals
from pre_commit.languages import helpers
from pre_commit.languages.docker import assert_docker_available
from pre_commit.languages.docker import docker_cmd
from pre_commit.xargs import xargs
ENVIRONMENT_DIR = None
@ -16,8 +15,4 @@ install_environment = helpers.no_install
def run_hook(prefix, hook, file_args): # pragma: windows no cover
assert_docker_available()
cmd = docker_cmd() + helpers.to_cmd(hook)
return xargs(
cmd,
file_args,
target_concurrency=helpers.target_concurrency(hook),
)
return helpers.run_xargs(hook, cmd, file_args)