Repository navigation
ci: fix pyproject-fmt segfault on pre-commit.ci - #35
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pyproject-fmt fails on pre-commit.ci with exit code -11 (SIGSEGV). It crashes rather than reporting a formatting problem, and it happens on PRs that don’t touch pyproject.toml at all (see #33 and #34) so it’s blocking unrelated work.
The hook passes locally (pyproject-fmt v2.5.1, Python 3.12.14), and re-running pre-commit.ci with a fresh cache didn’t help, which points at the Python version its runner provides rather than the hook itself. pyproject-fmt ships a native extension, so a wheel mismatch against a newer interpreter is a plausible cause.
This pins the hook to python3.12. I can’t reproduce the failure locally, so pre-commit.ci is the only test (if this doesn’t work, the alternative is bumping rev past v2.5.1.)