Bump ci to use python 3.13, modernize type hints#196
Conversation
- This change improves code clarity and aligns with modern Python typing practices.
|
regen-ci-req-check detected changes to pinned CI requirements and uploaded a patch artifact named 'regen-pins-diff'. No package-like changes found in the req diff patch This is usually an artifact of pip-compile logging changes and can be ignored but you may inspect the req diff patch in the Please review the artifact and CI results. This workflow is report-only and will not open a PR; the scheduled regen workflow will open PRs automatically. |
There was a problem hiding this comment.
Pull request overview
This PR modernizes the Interpretune codebase by bumping CI to Python 3.13 and modernizing type hints to use PEP 604 union syntax (X | Y instead of Union[X, Y] and X | None instead of Optional[X]). This change improves code clarity and aligns with modern Python typing practices.
Changes:
- Updated CI workflows and Docker configurations to use Python 3.13
- Modernized type hints throughout the codebase using PEP 604 syntax (
X | Y,X | None) - Updated dependency versions in requirements.txt
- Updated build scripts to use Python 3.13
Reviewed changes
Copilot reviewed 98 out of 98 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Added Python 3.13 classifier and updated finetuning-scheduler git dependency |
| .github/workflows/*.yml | Updated all CI workflows to use Python 3.13 |
| .github/actions/*/action.yml | Updated action defaults to Python 3.13 |
| tests/*.py | Modernized type hints (Union → |, Optional → | None) |
| src/interpretune/**/*.py | Modernized type hints across all source files |
| src/it_examples/**/*.py | Modernized type hints in examples |
| scripts/build_it_env.sh | Updated to use Python 3.13 |
| dockers/.sh, dockers//Dockerfile | Updated Docker configurations to Python 3.13 |
| requirements/ci/requirements.txt | Updated locked dependencies with version bumps |
This PR modernizes the Interpretune codebase by bumping CI to Python 3.13 and modernizing type hints. This change improves code clarity and aligns with modern Python typing practices.
Changes: