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
[Enhancement] No strict option for setup.cfg #3858
Comments
I don't know of a conscious decision to leave this option out. It appears it is also not available in |
It was a conscious decision -- nothing in mypy checks for 'options.strict',
instead --strict just turns on a bunch of other flags, and the logic to do
this correctly from the config file was too convoluted to do. Nevertheless
we might be able to do this, but since it's really just a shorthand, I
recommend being explicit in your config file.
|
I found this issue after being confused by the "Unrecognized option: strict" message. The reasoning for not supporting it makes sense: maybe it's worth making MyPy show a message explaining that this is intentional and what to do instead, rather than just giving the uninformative "Unrecognized option" message? Current message:
Straw suggestion:
|
Improving the error message is a good idea. |
I tried to use strict mode from a configuration file:
setup.cfg:
Then mypy says that the option is not recognized. It would be nice to be able to enable strict mode from the setup.cfg
The text was updated successfully, but these errors were encountered: