-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Enable type checking and adding typing_copilot to dev/CI environment #1496
Comments
My initial thought, for what it is worth, is that we aim to get this in after the next release, and give it a test run. If nothing else, I bet the experience of a maturing code base adding typing will be an interesting experiment, and we'll all learn something. It also seems easy to get rid of. |
Do it :D |
If #1498, #1503, and #1505 get merged, then
To reproduce the above, make sure you have Happy to post the generated |
I am completely on board with using typing_copilot, my only concern is that as it has been shown in all the typing related PRs, I barely know anything about typing (thank you so much @obi1kenobi for all the explanations by the way) and will probably not be able to help contributors fix typing issues that come up. I know it's still a work in progress at a very early stage, but could we also add/summarize all these conversations and instrucctions to the developer guide? https://arviz-devs.github.io/arviz/contributing/index.html |
This is done already 😄 so I'll close the issue |
This is to help track and discuss adding typing_copilot as a dev dependency, and as part of the CI for arviz.
TL;DR
We add type checking to pull request checks, and another tool to enforce that our type checking is only getting stronger.
Slightly longer
This is a discussion over whether we want to do two things:
typing_copilot
I've sketched some possible wins and losses as I see them, and I'm tagging @obi1kenobi (author of
typing_copilot
) who might be able to help us think through whether this makes sense. Note that he has already submitted #1397, #1398, #1491, #1492, #1493, and #1494. @OriolAbril and @obi1kenobi have some great conversations in there about what is going on, and what the benefits are.The general idea of
typing_copilot
is that it checks your mypy configuration against the amount of checking you've already done, and will tighten the config file, if possible. To me, it seems like a no-brainer that if we decide type checking is a good idea, to use this.Possible wins:
Possible losses:
The text was updated successfully, but these errors were encountered: