-
Notifications
You must be signed in to change notification settings - Fork 9
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
Restore running mypy
in CI
#1001
Conversation
8d09bb4
to
3cac5ca
Compare
6da8111
to
d58c1f9
Compare
I'm very meh on the amount of type ignores in this PR. I feel like we should have changed mypy settings instead. |
In what way would you change the mypy settings? Looks like we can maybe take the number of type ignores down from ~2000 to ~600 by manipulating the mypy config, but I don't think it's the better approach. I'd prefer stricter type-checking for all new code. What drawbacks do you see in the number of type ignores? |
It's mostly the amount of extra noise. The two main kinds of errors are:
|
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.
I see arguments for going both ways and I am not sure which way we want to go.
Are you going to be adding new code soon, like in next cycles?
I would at least run counts of each type-ignores. Create an issue which lists those in ascending order and put it to on your managers radar as a badly needed tech investment. Then each of type-ignore type can be tackled separately.
Not sure, but given that we don't have as much experience working with sync-engine, we'll need all the help we can get. |
FYI @maxpollack |
Main changes:
mypy
in GHA# type: ignore
comments for existing mypy errors