Skip to content

BUG: pre-commit setup not isolating from .local environment #561

Description

@NoahRJohnson

just pre-commit setup will not install python libraries into the virtual environment if those libraries already exist in a user's local installation. This causes just pre-commit sync to fail, as the expected binaries aren't available in the local .pre-commit/python/bin directory. In my case I was getting an error about a missing pip-sync executable, caused by my local installation of pip-tools.

The key line seen during setup is:
Requirement already satisfied: pip-tools in /home/noah/.local/lib/python3.13/site-packages (7.5.3)

I solved this in my case by uninstalling pip-tools locally, then purging and re-generating the virtual environment. Ideally just would isolate the libraries itself.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions