Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 28, 2024
1 parent 9cbd9f6 commit 71d6a1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pre_commit/repository.py
@@ -1,10 +1,10 @@
from __future__ import annotations

import sys
import json
import logging
import os
import shlex
import sys
from collections.abc import Sequence
from typing import Any

Expand Down Expand Up @@ -85,7 +85,7 @@ def _hook_install(hook: Hook) -> None:
lang.ENVIRONMENT_DIR,
hook.language_version,
)

if hook.language == 'python' and not hook.require_venv:
logger.info(f'Disabling creation of virtual environment for hook {hook.src}')
# Path to the Python executable inside the virtual environment
Expand Down

0 comments on commit 71d6a1b

Please sign in to comment.