Skip to content

ci: Use vanilla pre-commit action#52

Merged
manuq merged 1 commit intomainfrom
push-ullqvwtpyvxo
Aug 6, 2025
Merged

ci: Use vanilla pre-commit action#52
manuq merged 1 commit intomainfrom
push-ullqvwtpyvxo

Conversation

@wjt
Copy link
Member

@wjt wjt commented Aug 6, 2025

Previously, we used https://github.com/tox-dev/action-pre-commit-uv, which installs pre-commit with uv, then uses
https://github.com/tox-dev/pre-commit-uv to redirect pre-commit's use of venv and pip to instead use uv. (This is not to be confused with the https://github.com/astral-sh/uv-pre-commit hook that we use in .pre-commit-config.yaml. It's pre-commit and uv all the way down.)

Currently there is an issue in pre-commit-uv where it fails to invoke uv. We don't actually depend on the (alleged) (probably small) performance improvement from managing pre-commit and its environments with uv.

Use https://github.com/pre-commit/action instead, which installs pre-commit with pip, with appropriate caching. This action is in maintenance-only mode but it still works fine and is very simple.

Fixes #51

Previously, we used https://github.com/tox-dev/action-pre-commit-uv,
which installs pre-commit with uv, then uses
https://github.com/tox-dev/pre-commit-uv to redirect pre-commit's use of
venv and pip to instead use uv. (This is not to be confused with the
https://github.com/astral-sh/uv-pre-commit hook that we use in
`.pre-commit-config.yaml`. It's pre-commit and uv all the way down.)

Currently there is an issue in pre-commit-uv where it fails to invoke
uv. We don't actually depend on the (alleged) (probably small)
performance improvement from managing pre-commit and its environments
with uv.

Use https://github.com/pre-commit/action instead, which installs
pre-commit with pip, with appropriate caching. This action is in
maintenance-only mode but it still works fine and is very simple.

Fixes #51
@wjt wjt requested a review from manuq August 6, 2025 16:27
Copy link
Contributor

@manuq manuq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh so this was the issue!

@manuq manuq merged commit 07e40b2 into main Aug 6, 2025
1 check passed
@manuq manuq deleted the push-ullqvwtpyvxo branch August 6, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pre-commit workflow is failing

2 participants

Comments