Skip to content

warning: VIRTUAL_ENV ignored #36

@danielhollas

Description

@danielhollas

When running uv 0.5.16 using this pre-commit hook I get the following warning:

warning: `VIRTUAL_ENV=/home/hollas/.cache/pre-commit/repovyb9qrvk/py_env-python3.12` does not match the project environment path `.venv` and will be ignored

I understand why the warning is there, but I suspect it could be quite confusing for new users. It would be great if this warning could be somehow disabled when uv is run within pre-commit virtual environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions