Skip to content

fix: run pre-commit through uv in justfile precommit recipe #46

Closed

Description

@c-vigo

Description

The just precommit recipe currently runs pre-commit run --all-files directly, which may fail if pre-commit is not installed globally or not in PATH outside the virtual environment.

Problem Statement

When running just precommit in a workspace where pre-commit is only available inside the uv-managed virtual environment, the command fails because it doesn't find the pre-commit executable.

Proposed Solution

Change the precommit recipe in justfile.base to run pre-commit through uv:

-    pre-commit run --all-files
+    uv run pre-commit run --all-files

This ensures the command runs within the project's virtual environment where pre-commit is installed.

Files Affected

  • justfile.base
  • assets/workspace/.devcontainer/justfile.base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions