Support Python 3.10 and align typing/CI tooling#16
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #16 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 196 198 +2
=========================================
+ Hits 196 198 +2 ☔ View full report in Codecov by Sentry. |
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.
Motivation
uvenvironment instead of relying on separately installed tools.Description
>=3.10, add Python 3.10/3.11 classifiers, and expand the CI matrix to run on Python 3.10 through 3.14.alternative.pyannotations to Python 3.10-compatibleGeneric,ParamSpec, andTypeVarforms, replacing newer type-parameter syntax and removing the previouspyreflyoverload ignore.reference,Alternatives.add,Implementation.add, and pytest helper decorator overloads around a typed_Undefinedsentinel so bare-decorator and configured-decorator usage are represented directly.ruff,pyrefly, andmypyas project dev dependencies and simplify CI to rely onuv sync --devplusuv run --dev ...commands.--cov-fail-under=100, document the full verification command set inAGENTS.md, and require branch-coverage review for materialalternative.pybranching changes.test-results.xmlalongside the other coverage/test artifacts.Testing
uv run --dev ruff format --check .uv run --dev ruff check .uv run --dev pyrefly check .uv run --dev mypy .uv run --dev pytestuv run --dev pytest --cov-report=term-missing:skip-covereduv run --dev pytest --cov-branch --cov-report=term-missing:skip-covereduv run --dev pytest -vv --cov=alternative --cov-report=xml --cov-fail-under=100 --junitxml=test-results.xmlCodex Task