-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add typechecking #73
Add typechecking #73
Conversation
# variable`, unless this variable is set: | ||
MPLBACKEND: "Agg" | ||
|
||
- name: "Install mypy" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to this workflow because we already have the project dependencies installed here. But we don't have a reason to run mypy
on 4 different Python versions (it's configured to target 3.8
in pyproject.toml
). Creating a Python environment is expensive, but so is running the type checker. I don't have strong feelings about this tradeoff 🤷 Happy to make this a separate workflow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, although I don't think we have type annotations so not sure we'll learn much from mypy.
I added some annotations in the previous PR :) I find a typechecker to be a really useful tool for refactoring as well. |
ac5bc73
to
e02a37d
Compare
e02a37d
to
a271a0e
Compare
Depends on #72 --
after merging, this branch should be rebased / merged frommain
This PR adds type checking for annotations added in #72