Repository navigation
py(chore[floor]): Require Python 3.11 - #362
Merged
Merged
Conversation
why: Python 3.10 reached end of life in October 2026. The lock kept a Python 3.10 fork beside the >=3.11 resolution (sqlalchemy 2.0.57 beside 2.1.8, watchdog, sphinx, tomli, exceptiongroup, greenlet), and tests/test_install_widget.py fell back to tomli with a type: ignore on 3.10. `uv lock` with requires-python >=3.11 collapses the forks; `ruff check --fix`, mypy and pytest are clean on 3.15. what: - Set requires-python to >=3.11,<4.0 and drop the 3.10 classifier - Set mypy python_version to 3.11 and ruff target-version to py311 - Import tomllib directly in the widget test and drop the tomli fallback with its type: ignore - Drop 3.10 from .tool-versions; CI already runs 3.15 only - Relock with `uv lock` only: the lock loses tomli, exceptiongroup and greenlet, and every other package keeps its >=3.11 version
why: README and CONTRIBUTING still named Python 3.10 after the floor moved to 3.11. what: - Update the README install note and support line to 3.11 - Update the CONTRIBUTING mypy target note to 3.11 - Add a CHANGES breaking-change entry for the new minimum
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #362 +/- ##
==========================================
+ Coverage 89.31% 89.42% +0.11%
==========================================
Files 12 12
Lines 702 700 -2
==========================================
- Hits 627 626 -1
+ Misses 75 74 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Raise the Python floor to 3.11. Python 3.10 reached end of life in October 2026.
Changes
requires-python = ">=3.11,<4.0", 3.10 classifier dropped, mypy and ruff targets at 3.11tests/test_install_widget.pyimportstomllibdirectly; thetomlifallback and itstype: ignoreare gone.tool-versions(CI already runs 3.15 only)uv lockonly:tomli,exceptiongroupandgreenletdrop out and the 3.10 fork entries collapse; no version inside the >=3.11 fork movescihai~=0.38.0constraint is unchangedTest plan
uv run ruff check .,ruff format .,mypy .cleanuv run py.test: 28 passed on 3.15