testsAndMisc/.github
Krzysztof kuhy Rudnicki 6eb70de0ba Key the pre-commit cache on the Python that was actually installed
The key said `py3.12` as a literal while the job installs `3.x`, which is
3.14.7 today. A `language: python` hook env is built by whichever Python
pre-commit ran under, so the cache kept handing back envs built on 3.12.14 and
the hooks kept running there -- invisibly, right up to the first syntax 3.12
cannot parse.

PEP 758 was that syntax. The previous commit's `except A, B:` reached pylint
and the debug-statement hook on cached 3.12 interpreters and came back as
"multiple exception types must be parenthesized", a failure with no local
reproduction: developer caches were built on 3.14, where the same pylint 3.3.2
and the same pylint 4.0.7 both parse the file fine. The syntax was never the
defect; the stale interpreter was.

`steps.setup-python.outputs.python-version` cannot drift from what was
installed, so this cannot recur on the next release either.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SfnJmxxsZ534AKk16rC2Gr
2026-08-29 12:01:52 +02:00
..
agents style(prettier): apply markdown/json formatting updates 2026-05-07 22:08:00 +02:00
skills Flatten i3-configuration and misc/testsAndMisc-bash 2026-08-23 19:02:18 +02:00
workflows Key the pre-commit cache on the Python that was actually installed 2026-08-29 12:01:52 +02:00
copilot-instructions.md fix: resolve all pre-commit hook failures after file splits 2026-03-18 22:20:05 +01:00