Skip to content

Run pre-commit Python hooks on 3.14 (fixes red pre-commit.ci) - #77

Merged
jeyrb merged 2 commits into
mainfrom
alignment/precommit-python314
Nov 1, 2026
Merged

jeyrb merged 2 commits into
mainfrom
alignment/precommit-python314

Conversation

@jeyrb

@jeyrb jeyrb commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

pre-commit.ci has failed on every push to main since at least mid-October. It is red on all 12 most recent commits.

Cause (reproduced locally): with no default_language_version, pre-commit.ci builds the hook envs on its default interpreter, which is older than 3.14. mypy then rejects the 3.14-only except A, B: syntax in stream/api.py:250 (PEP 758). With 3.14 the full hook set passes.

Change: pin python: python3.14 for hooks, as supernotify, autoarm, remote_logger and appliance_autonotify already do. The package requires >=3.14.9 anyway.

Separate decision, not in this PR: the 10-22 move to >=3.14.9,!=3.15.0 dropped Python 3.13, which policies/python_versions.md keeps for PyPI packages until Sep 2027. It's raised in the hq issue linked from the report.

Detail: alignment report 2026-11, Python tooling


Generated by Claude Code

pre-commit.ci has failed on every push since mid-October: with no
default_language_version, mypy runs on its older default interpreter and
rejects the 3.14-only except syntax. Pin python3.14 as supernotify, autoarm,
remote_logger and appliance_autonotify do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015pBfcbEDqkRkkEEkdd8m4u
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015pBfcbEDqkRkkEEkdd8m4u
@jeyrb jeyrb self-assigned this Nov 1, 2026
@jeyrb
jeyrb merged commit cf66d3d into main Nov 1, 2026
14 of 15 checks passed
@jeyrb
jeyrb deleted the alignment/precommit-python314 branch November 1, 2026 09:41
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.

2 participants