Conversation
shahar1
force-pushed
the
drop-py310/2-script-metadata
branch
from
October 3, 2026 13:07
a729734 to
9c9303d
Compare
shahar1
added this pull request to stack #74160
October 3, 2026 13:08
1 task done
shahar1
force-pushed
the
drop-py310/2-script-metadata
branch
from
October 3, 2026 13:38
9c9303d to
b337259
Compare
shahar1
marked this pull request as ready for review
October 3, 2026 13:49
shahar1
requested review from
amoghrajesh,
ashb,
bugraoz93,
choo121600,
ephraimbuddy,
gopidesupavan,
jason810496,
jedcunningham,
jscheffl,
potiuk and
vatsrahul1001
as code owners
October 3, 2026 13:49
shahar1
force-pushed
the
drop-py310/2-script-metadata
branch
2 times, most recently
from
October 3, 2026 20:05
5210382 to
861d045
Compare
shahar1
force-pushed
the
drop-py310/2-script-metadata
branch
from
October 4, 2026 17:53
861d045 to
35f7d63
Compare
The prek hooks and dev scripts declare the interpreter they run under in PEP 723 metadata, and prek picks the hook interpreter from it, so this has to land before any hook starts using 3.11-only APIs. With Python 3.10 gone from the project they can also drop the tomli backport from their dependency lists, because tomllib is in the standard library from 3.11.
potiuk
force-pushed
the
drop-py310/2-script-metadata
branch
from
October 4, 2026 23:43
228f3fc to
f4ade48
Compare
This branch has not been deployed
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.
Bumps Python version to 3.11 in every inline script definition (
# requires-python).related: #74148
AI Summary
PEP 723 `# requires-python` metadata in `scripts/ci/prek/*.py` and `dev/**` moves from 3.10 to 3.11 (`>=3.11,<3.12` for prek hooks that pin a single minor, `>=3.11` elsewhere). The `tomli` backport is dropped from the inline dependency lists because `tomllib` is in the standard library from 3.11. prek picks the hook interpreter from this header, so this layer has to precede any hook using 3.11-only APIs. The three diagram PNG/md5 pairs are regenerated because their generator scripts carry the header.Stack
Layer 2 of 9 of the Python 3.10 drop (supersedes #74144, which carried the whole change in one PR). Each layer is meant to be green on its own: the script metadata bump comes first because prek picks the hook interpreter from it, and the ruff fixes land before the
requires-pythonbump because ruff infers its target per distribution from the nearestpyproject.toml.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Fable 5.1) following the guidelines