Repository navigation
Drop Python 3.10 and add Python 3.15 support - #93
Merged
Merged
Conversation
- Test 3.11 to 3.15 in CI - Target py311 in ruff - mise pins Python 3.11, creates the venv with uv and adds an install task
- Bump actions/checkout to v7 and actions/setup-python to v7 - Bump pre-commit hooks: ruff v0.17.1, mypy v2.4.0, prettier v3.9.10 - Fix the issues the new ruff flags (import merges, py311 upgrades, dict literals, subprocess check, simpler return) - Skip mypy errors in the generali and sdmx_ml models, which CI already skips - Drop types-dataclasses, a stub for the old dataclasses backport
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.
Follows tefra/xsdata#1241, which raises the minimum to Python 3.11 and adds 3.15.
Changes
ruff.tomltargetspy311.mise.tomlpins Python 3.11 and creates the venv with uv. A newinstalltask runsuv pip install -r requirements.txt.Testing
invoke allon Python 3.11 against xsdatamain: 20 passed, 0 failed, and no output files changed.Dev dependencies
actions/checkoutandactions/setup-pythonare now v7.mypy.ininow ignores errors ingenerali.modelsandsdmx_ml.models. They had 5 errors before these bumps too, and CI already skips mypy for both collections.types-dataclasses, the stubs for the olddataclassesbackport.tpdbhit the usual parallel-runsdmx_ml.modelsimport flake and passed when run alone.