Skip to content

Update testing routine with toxuv and ty - #86

Merged
martinvonk merged 11 commits into
devfrom
toxuvty
Mar 17, 2026
Merged

Update testing routine with toxuv and ty#86
martinvonk merged 11 commits into
devfrom
toxuvty

Conversation

@martinvonk

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the project’s development/testing toolchain (tox + uv and adding the ty type checker) and applies a few small typing/import cleanups in the Python source to support stricter type-checking.

Changes:

  • Switch tox configuration to tox-uv and add a new typety tox env to run ty check.
  • Update CI to run the new typety environment and use uv in the test workflow.
  • Clean up typing/imports in plotting code and adjust internal typing annotations.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/spei/utils.py Removes an incorrect inline type comment while grouping data by year.
src/spei/si.py Updates _dist_dict typing to use Timestamp keys.
src/spei/plot.py Refactors matplotlib imports/types to be more explicit for type checking.
src/spei/knmi.py Ensures numeric dtype when computing constrained cumulative sums.
pyproject.toml Adds ty to typing extras; migrates tox to tox-uv; adds typety env.
README.md Adds a ty type-checker badge and adjusts the mypy badge.
.github/workflows/tests.yml Runs CI using uv + tox and adds a typety matrix entry.
.github/workflows/python-publish.yml Updates action versions (but currently introduces a workflow YAML issue).
.github/workflows/draft-pdf.yml Updates action versions for paper draft workflow.
.github/workflows/documentation.yml Updates action versions for docs workflow.
.github/workflows/auto-author-assign.yml Bumps the auto-author-assign action major version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .github/workflows/python-publish.yml Outdated
Comment thread src/spei/si.py
@martinvonk
martinvonk merged commit e46dd90 into dev Mar 17, 2026
19 checks passed
@martinvonk
martinvonk deleted the toxuvty branch April 9, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants