Skip to content

Bump ci to use python 3.13, modernize type hints#196

Merged
speediedan merged 1 commit intomainfrom
py3.13-ci-hint-refactor
Jan 16, 2026
Merged

Bump ci to use python 3.13, modernize type hints#196
speediedan merged 1 commit intomainfrom
py3.13-ci-hint-refactor

Conversation

@speediedan
Copy link
Copy Markdown
Owner

@speediedan speediedan commented Jan 16, 2026

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:

  • Updated CI workflows and Docker configurations to use Python 3.13
  • Modernized type hints throughout the codebase: e.g.
    • List[X] → list[X]
    • Dict[K, V] → dict[K, V]
    • Tuple[X, Y] → tuple[X, Y]
    • Set[X] → set[X]
    • Optional[X] → X | None
    • Union[X, Y] → X | Y
  • Updated dependency versions in requirements.txt
  • Updated build scripts to use Python 3.13

- This change improves code clarity and aligns with modern Python typing practices.
@github-actions
Copy link
Copy Markdown

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 regen-ci-req-report workflow logs manually if desired.

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.

@github-actions github-actions bot added module: adapters Adapter system module: analysis Analysis functionality module: base Base classes and core logic module: config Configuration system module: extensions Extension system module: runners Runner implementations module: utils Utility functions module: protocol Protocol.py specific module: registry Registry system module: session Session management area: examples Example code and demos area: experiments Experimental features area: notebooks Jupyter notebooks area: patching Patching functionality area: tests Testing code area: docs Documentation files area: ci Continuous integration area: build Build system and packaging area: scripts Shell scripts and automation dependencies Dependency updates config Configuration file changes extension: debug_generation Debug generation extension extension: memprofiler Memory profiler extension extension: neuronpedia Neuronpedia extension adapter: circuit_tracer Circuit tracer adapter adapter: transformer_lens Transformer Lens adapter adapter: registration Adapter registration system labels Jan 16, 2026
@speediedan speediedan marked this pull request as ready for review January 16, 2026 02:28
Copilot AI review requested due to automatic review settings January 16, 2026 02:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@speediedan speediedan merged commit 08b1b29 into main Jan 16, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adapter: circuit_tracer Circuit tracer adapter adapter: registration Adapter registration system adapter: transformer_lens Transformer Lens adapter area: build Build system and packaging area: ci Continuous integration area: docs Documentation files area: examples Example code and demos area: experiments Experimental features area: notebooks Jupyter notebooks area: patching Patching functionality area: scripts Shell scripts and automation area: tests Testing code config Configuration file changes dependencies Dependency updates extension: debug_generation Debug generation extension extension: memprofiler Memory profiler extension extension: neuronpedia Neuronpedia extension module: adapters Adapter system module: analysis Analysis functionality module: base Base classes and core logic module: config Configuration system module: extensions Extension system module: protocol Protocol.py specific module: registry Registry system module: runners Runner implementations module: session Session management module: utils Utility functions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants