Skip to content

chore(asdf): upgrade python from 3.10 to 3.11.17 [as-1750] - #28

Merged
kevin-dimichel merged 1 commit into
mainfrom
chore/AS-1750-python-3.11
Oct 30, 2026
Merged

kevin-dimichel merged 1 commit into
mainfrom
chore/AS-1750-python-3.11

Conversation

@kevin-dimichel

Copy link
Copy Markdown
Contributor

Rationale

  • Python 3.10 reaches end of life at the end of October 2026.
  • pre-commit 4.7.0 can't build Python hook environments under Python 3.10.
    • Its zipapp bundles virtualenv 21.14.7, which imports typing_extensions on 3.10, but the zipapp doesn't include it.
    • CI fails with ModuleNotFoundError: No module named 'typing_extensions' whenever the pre-commit hook cache misses. That happens on every Dependabot pre-commit PR, for example https://github.com/voxel51/aloha-template/pull/44.

Review Priority

  • high
  • medium
  • low

Changes

  • Upgrades Python in .tool-versions from 3.10 to 3.11.17, the latest 3.11 release.
  • Runs the black pre-commit hook with python3.11 instead of python3.10.

Testing

  • I reproduced the pre-commit failure locally. pre-commit 4.7.0 fails to build a hook environment with Python 3.10, and pre-commit 4.6.2 succeeds. Python 3.11 avoids the bug.
  • Locally, black passes on all files under Python 3.11 with no changes.

🤖 Generated with Claude Code

Python 3.10 reaches end of life at the end of October 2026.

pre-commit 4.7.0 also can't build Python hook environments under
Python 3.10. Its zipapp bundles a virtualenv that imports
typing_extensions on 3.10 but doesn't include it, so CI fails whenever
the hook cache misses, as it does on every Dependabot pre-commit PR.

Run the black hook with python3.11 to match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kevin-dimichel
kevin-dimichel requested a review from a team as a code owner October 22, 2026 01:10
@kevin-dimichel
kevin-dimichel merged commit 8dc09c7 into main Oct 30, 2026
1 check passed
@kevin-dimichel
kevin-dimichel deleted the chore/AS-1750-python-3.11 branch October 30, 2026 21:24
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