pre-commit/pre_commit/languages/system.py
Mark Mayo cd00569d64 tidied and sorted imports
removed ones not required as well, groups and spaced.
2022-12-10 10:51:56 +13:00

19 lines
486 B
Python

from __future__ import annotations
from typing import Sequence
from pre_commit.hook import Hook
from pre_commit.languages import helpers
ENVIRONMENT_DIR = None
get_default_version = helpers.basic_get_default_version
health_check = helpers.basic_health_check
install_environment = helpers.no_install
def run_hook(
hook: Hook,
file_args: Sequence[str],
color: bool,
) -> tuple[int, bytes]:
return helpers.run_xargs(hook, hook.cmd, file_args, color=color)