-
Notifications
You must be signed in to change notification settings - Fork 497
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
Cleanup: mypy.ini reduction #633
Conversation
…py on setuptools during our linting
…ibrary doesn't yet have typing information available)
warn_return_any=False | ||
warn_unreachable=False | ||
|
||
strict_equality=True |
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 think we probably want to keep most of these due to the defaults for strictness options mostly being disabled:
https://mypy.readthedocs.io/en/stable/config_file.html#confval-strict_equality
I agree it's kind of icky, but one way to think of it is explicit over implicit
another thing, they may not error now, but they will help warn in the future
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.
Hmm, ok - understood that the checks we run could be made stricter. What would the costs and benefits of stricter checks be to our developers and maintainers?
show_column_numbers=True | ||
show_error_codes=True |
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.
for instance, these are all false by default:
https://mypy.readthedocs.io/en/stable/config_file.html#confval-show_error_codes
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.
and ditto for most of the others
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.
Ok, yep - enabling those seems like a good idea. Why are they disabled by default?
cc @sbdchd - it's totally possible that I misunderstand the reasoning behind some of the
mypy.ini
configuration here (maybe local development environment differences?), but either way, runningmypy recipe_scrapers tests
locally produces the same results before and after this change. The less configuration, the better, I reckon.