remove deprecated python_venv alias

This commit is contained in:
Anthony Sottile 2024-10-05 13:30:25 -04:00
parent a2f7b80e89
commit 801b956304
4 changed files with 0 additions and 36 deletions

View file

@ -44,7 +44,5 @@ languages: dict[str, Language] = {
'script': script,
'swift': swift,
'system': system,
# TODO: fully deprecate `python_venv`
'python_venv': python,
}
language_names = sorted(languages)

View file

@ -3,7 +3,6 @@ from __future__ import annotations
import json
import logging
import os
import shlex
from collections.abc import Sequence
from typing import Any
@ -68,14 +67,6 @@ def _hook_install(hook: Hook) -> None:
logger.info('Once installed this environment will be reused.')
logger.info('This may take a few minutes...')
if hook.language == 'python_venv':
logger.warning(
f'`repo: {hook.src}` uses deprecated `language: python_venv`. '
f'This is an alias for `language: python`. '
f'Often `pre-commit autoupdate --repo {shlex.quote(hook.src)}` '
f'will fix this.',
)
lang = languages[hook.language]
assert lang.ENVIRONMENT_DIR is not None