[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-03-28 07:47:41 +00:00
parent 9cbd9f69ff
commit 71d6a1b83b

View file

@ -1,10 +1,10 @@
from __future__ import annotations from __future__ import annotations
import sys
import json import json
import logging import logging
import os import os
import shlex import shlex
import sys
from collections.abc import Sequence from collections.abc import Sequence
from typing import Any from typing import Any
@ -85,7 +85,7 @@ def _hook_install(hook: Hook) -> None:
lang.ENVIRONMENT_DIR, lang.ENVIRONMENT_DIR,
hook.language_version, hook.language_version,
) )
if hook.language == 'python' and not hook.require_venv: if hook.language == 'python' and not hook.require_venv:
logger.info(f'Disabling creation of virtual environment for hook {hook.src}') logger.info(f'Disabling creation of virtual environment for hook {hook.src}')
# Path to the Python executable inside the virtual environment # Path to the Python executable inside the virtual environment