build(deps)!: lower Python floor to 3.11#133
Merged
Conversation
…path false matches
…packages, py.warnings gate
…ith future error pipeline
…ed warning rendering
There was a problem hiding this comment.
Pull request overview
This PR broadens RAITAP’s supported Python range to 3.11–3.13 (keeping the existing <3.14 cap), and adjusts tooling/CI/docs accordingly so contributors and users can work on 3.11+ while still keeping heavier lanes (lint/typecheck/coverage/docs) primarily on 3.13.
Changes:
- Packaging/tooling: lower
requires-pythonto>=3.11,<3.14, add 3.11/3.12 classifiers, set Ruff/Pyright target versions to 3.11. - Dependencies: gate the
docsdependency group topython_full_version >= '3.13'. - CI/docs: expand CPU quality gate and package smoke coverage to include Python 3.11, and update docs to reflect “Python 3.11+”.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
pyproject.toml |
Lowers Python floor to 3.11, updates classifiers and Ruff/Pyright targets, gates docs group to py≥3.13. |
docs/using-raitap/installation.md |
Updates installation note to Python 3.11+ and clarifies 3.14 is unsupported. |
docs/contributor/setup.md |
Updates contributor prerequisites and guidance for selecting interpreter versions with uv. |
docs/using-raitap/job-launcher.md |
Updates job-launcher docs to reflect Python 3.11+ support. |
.github/workflows/code-quality.yaml |
Adds a 3.11/3.13 matrix for CPU quality gate; gates lint/typecheck/coverage upload to 3.13. |
.github/workflows/package-smoke.yml |
Adds a 3.11/3.13 matrix and per-extra smoke sync/import checks. |
# Conflicts: # src/raitap/data/data.py # src/raitap/data/tests/test_data.py # src/raitap/metrics/inputs.py # src/raitap/robustness/factory.py # src/raitap/robustness/semantics.py # src/raitap/run/pipeline.py # src/raitap/transparency/explainers/captum_explainer.py # src/raitap/transparency/factory.py # src/raitap/utils/__init__.py # src/raitap/utils/console.py # src/raitap/utils/diagnostics.py # src/raitap/utils/tests/test_diagnostics.py
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
requires-pythonto>=3.11,<3.14; add 3.11/3.12 classifierstarget-version=py311, pyrightpythonVersion=3.11docsdependency group topython_full_version >= '3.13'(Sphinx 9.1+ requires py>=3.12; docs CI runs on 3.13)uv.lock(universal)quality-gate-linux-cpumatrixed on[3.11, 3.13]; lint/pyright/coverage gated to 3.13package-smokecross-productspython-version × extra(torch-cpu, onnx-cpu, shap, captum, torchattacks, foolbox, mlflow, metrics, reporting, launcher) with import smokeCloses #130. Unblocks #129 (Marabou adapter — wheel cap at cp311).
Test plan
uv sync --python 3.11/3.12/3.13all succeeduv run --python 3.11 pytest -m "not e2e and not cuda"— 571 passeduv run --python 3.13 pytest -m "not e2e and not cuda"— 571 passedruff check+ruff format --checkclean on both interpreterspyrightclean on both interpreterspackage-smokegreen for every (py, extra) combination