Upstream basic support for red knot#155
Conversation
|
cc @sharkdp This is adapted from your branch. Also let me know if you'd like commit rights! |
I was planning to clean that up a bit before upstreaming it, so thank you for doing that!
Honestly, the most convenient way for me so far was to be able to run it on all projects, even if no explicit Red Knot configuration was present. This is why I wanted to add that generic Red Knot currently still crashes when checking some projects in mypy_primer's list (we hope to be able to run on all projects very soon). So for this reason, one could argue that it might be desirable to have an opt-in parameter, since it allows users to run To summarize, I would prefer if we could remove that If you're okay with that change, I'm happy to make the changes myself, of course.
Thanks. I think that might have been a remnant of some early experimentation I did.
Thank you for the offer. That would obviously be great, because it would allow us to make changes to |
sharkdp
left a comment
There was a problem hiding this comment.
Thank you. Confirming that I can now run our CI job successfully from this branch.
| location="https://github.com/hauntsaninja/mypy_primer", | ||
| mypy_cmd="{mypy} -p mypy_primer --strict", | ||
| pyright_cmd="{pyright} {paths}", | ||
| knot_cmd="{knot} check {paths}", |
There was a problem hiding this comment.
We could remove these knot_cmd lines now.
## Summary Switch to the official version of [`mypy_primer`](https://github.com/hauntsaninja/mypy_primer), now that Red Knot support has been upstreamed (see hauntsaninja/mypy_primer#138, hauntsaninja/mypy_primer#135, hauntsaninja/mypy_primer#151, hauntsaninja/mypy_primer#155). ## Test Plan Locally and in CI
Adapted for recent changes I made to make more mypy_primer logic type checker agnostic