Skip to content

ci: fix pyproject-fmt segfault on pre-commit.ci - #35

Merged
robbefonteyn merged 1 commit into
mainfrom
fix/pyproject-fmt
Nov 18, 2026
Merged

robbefonteyn merged 1 commit into
mainfrom
fix/pyproject-fmt

Conversation

@robbefonteyn

Copy link
Copy Markdown
Member

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.)

@robbefonteyn
robbefonteyn merged commit fce6000 into main Nov 18, 2026
5 of 6 checks passed
@robbefonteyn
robbefonteyn deleted the fix/pyproject-fmt branch November 18, 2026 10:18
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.

1 participant