build(python): align tooling/config to Python 3.14 (#10872 Tier 1)#10874
Merged
Conversation
Contributor
✅ SSOT Configuration Compliance: Passing🎉 No hardcoded values detected that have SSOT config equivalents! |
…thon, pre-commit runtime, CI default); hold black target at py312 for the 3.11 NPU worker (#10872)
2987970 to
ff87fc8
Compare
10 tasks
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.
Closes #10883.
Thinking Path
Runtime Docker images (backend + SLM) and all CI workflows already run Python 3.14, but tooling/config still targeted 3.12 — so mypy checked against the wrong interpreter and
requires-pythonwas inconsistent across packages.What Changed
pyproject.toml: mypypython_version3.12→3.14autobot_shared/pyproject.toml:requires-python>=3.12 → >=3.14 (matches sibling packages).pre-commit-config.yaml: black hooklanguage_versionpython3.12→python3.14 (black now runs under 3.14).github/actions/setup-python-ci/action.yml: default'3.12'→'3.14'(every caller already overrides; stale default)requirements-ci.txt/requirements.txt: interpreter-version comments 3.12→3.14 (dependency pins untouched)Deliberately NOT changed: black
target-versionstayspy312Bumping black target to
py314makes black emit PEP 758 unparenthesizedexcept A, B:across 146 files. That syntax is a SyntaxError under Python 3.11, and the NPU/OpenVINO worker runs 3.11 on shared code. Holdingtarget-version = ["py312"]keeps emitted syntax compatible across the mixed 3.11–3.14 fleet. Tracked in #10877 (unblock when the worker leaves 3.11).language_version: python3.14is safe because target-version — not the runtime — controls emitted syntax.Verification
blackwith no--target-version, so it honors pyprojectpy312→ no PEP 758 rewrite (verified: a py314-target autofix produced a 146-file diff; reverted).Model Used
Opus 4.8
Part of #10872 (Tier 1). Discoveries: #10877 (black target vs 3.11 NPU fleet).