Skip to content

Migrate back to mypy and enable typechecking in CI#2595

Open
VeckoTheGecko wants to merge 5 commits intoParcels-code:mainfrom
VeckoTheGecko:push-opkypksroupl
Open

Migrate back to mypy and enable typechecking in CI#2595
VeckoTheGecko wants to merge 5 commits intoParcels-code:mainfrom
VeckoTheGecko:push-opkypksroupl

Conversation

@VeckoTheGecko
Copy link
Copy Markdown
Contributor

Description

xref #2540

After trying out ty some more, I think it's best if we go for mypy. It has better support in the ecosysytem, and ty was flagging a lot of 'errors' within xarray internals causing noise.

Changes:

  • Switch from ty to mypy
  • Enable mypy in CI (i.e., we will get red crosses if it fails)
  • Curate the mypy settings taking inspiration from other open source projects
  • Fix a bunch of typing errors
  • Add an ignore list on files (as we improve typing across the codebase, we will reduce this ignore list)

Checklist

  • Closes None

Comment thread .github/workflows/ci.yml Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants