-
Notifications
You must be signed in to change notification settings - Fork 252
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
set up mypy hook for incremental adoption #199
Conversation
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.
Same as on poetry -- lets add some comments and rebase to fix the merge conflicts.
@neersighted this should be good to go. Not sure what's caused that python 3.10 workflow failure |
The mypy error is an open issue (see python/mypy#1393) and only occurs on 3.10 since
|
Go ahead with |
@neersighted do you mind triggering the CI for me? |
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.
fwiw, this looks good to me
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.
Please note that when I say 'like in Poetry,' I really mean 'like in the linked PR' that I am working to get merged.
i've aligned the pre-commit config with the |
Looks like we get a failure on pypy, which is interesting. Is this rebased onto the latest master? |
it is now |
|
rebased on master again. let's see if that helps |
I think the better thing to do here is to not depend on mypy in Alternatively, we could add a marker to only install on CPython (see the black dep above) -- but I'm thinking we should just remove the black and isort deps in the future and rely on pre-commit as the main poetry repo does. |
i've removed the mypy dep for now. |
as per the comment here - python-poetry/poetry#4510
as per the comment here - python-poetry/poetry#4510
as per the comment here - python-poetry/poetry#4510
for some reason i had to use different config to successfully exclude the
_vendor
directory