Add new docker_image language type.

`docker_image` is intended to be a lightweight hook type similar to system /
script which allows one to use an existing docker image which provides a
hook.
This commit is contained in:
Anthony Sottile 2017-09-02 19:49:23 -07:00
parent 491b90548f
commit 9c3bbecab8
10 changed files with 63 additions and 28 deletions

View file

@ -7,11 +7,7 @@ from pre_commit.xargs import xargs
ENVIRONMENT_DIR = None
get_default_version = helpers.basic_get_default_version
healthy = helpers.basic_healthy
def install_environment(repo_cmd_runner, version, additional_dependencies):
"""Installation for script type is a noop."""
raise AssertionError('Cannot install script repo.')
install_environment = helpers.no_install
def run_hook(repo_cmd_runner, hook, file_args):