summaryrefslogtreecommitdiffstats
path: root/pre_commit/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'pre_commit/repository.py')
-rw-r--r--pre_commit/repository.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/pre_commit/repository.py b/pre_commit/repository.py
index 040f238..aa84185 100644
--- a/pre_commit/repository.py
+++ b/pre_commit/repository.py
@@ -4,15 +4,14 @@ import json
import logging
import os
import shlex
+from collections.abc import Sequence
from typing import Any
-from typing import Sequence
import pre_commit.constants as C
from pre_commit.all_languages import languages
from pre_commit.clientlib import load_manifest
from pre_commit.clientlib import LOCAL
from pre_commit.clientlib import META
-from pre_commit.clientlib import parse_version
from pre_commit.hook import Hook
from pre_commit.lang_base import environment_dir
from pre_commit.prefix import Prefix
@@ -124,15 +123,6 @@ def _hook(
for dct in rest:
ret.update(dct)
- version = ret['minimum_pre_commit_version']
- if parse_version(version) > parse_version(C.VERSION):
- logger.error(
- f'The hook `{ret["id"]}` requires pre-commit version {version} '
- f'but version {C.VERSION} is installed. '
- f'Perhaps run `pip install --upgrade pre-commit`.',
- )
- exit(1)
-
lang = ret['language']
if ret['language_version'] == C.DEFAULT:
ret['language_version'] = root_config['default_language_version'][lang]