-
-
Notifications
You must be signed in to change notification settings - Fork 481
Integrate mypy_primer into our CI #1362
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
Comments
Related hauntsaninja/mypy_primer#8 |
From the mypy_primer corpus, some potentially useful projects are: zulip, dd-trace-py, websockets, pyinstrument (from a very quick skim, probably zulip is the main thing that's useful) |
This comment was marked as outdated.
This comment was marked as outdated.
Hey there! just wanted to chime in with some thoughts. While it's great to have better visibility into potential breakage and troubleshoot issues earlier, maintaining project-specific configurations might still be a challenge and require ongoing effort. However, if it means we can get rid of the maintenance burden of manually maintaining the list of ignores for our typecheck_tests, that would definitely be a win! Just some food for thought. We can also consider |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
I contributed a PR a little while back that should enable support for running mypy plugins with It hasn't been merged yet, but if we want to we could probably start by running off that PR if we want to try to get started |
For context: |
mypy_primer is a project that runs mypy on lots of public open source repositories.
In CI, it can do a mypy run before and after some proposed changes in a pull request, and report the diff between those results. It's being used by typeshed and mypy itself among others. Example:
If we add this to django-stubs and djangorestframework-stubs, it would give us better visibility into possible breakage we could be causing and help troubleshoot issues earlier.
I have no immediate plans to implement this and no experience with mypy_primer. I opened this issue to facilitate some discussion and feedback.
Most projects from mypy_primer's built-in project definitions wouldn't be very useuful for us, because they don't use Django. So we would probably want to create our own list of open source Django and django-rest-framework projects for mypy_primer. Suggestions for which ones to add would be helpful.
The text was updated successfully, but these errors were encountered: