Skip to content
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

Closed
marmistrz opened this issue Aug 22, 2017 · 4 comments
Closed

[Enhancement] No strict option for setup.cfg #3858

marmistrz opened this issue Aug 22, 2017 · 4 comments

Comments

@marmistrz
Copy link

I tried to use strict mode from a configuration file:
setup.cfg:

[mypy]
strict=True

Then mypy says that the option is not recognized. It would be nice to be able to enable strict mode from the setup.cfg

@ethanhs
Copy link
Collaborator

ethanhs commented Aug 24, 2017

I don't know of a conscious decision to leave this option out. It appears it is also not available in mypy.ini as well. It should be pretty easy to fix in our option parsing.

@gvanrossum
Copy link
Member

gvanrossum commented Aug 24, 2017 via email

@PiDelport
Copy link

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:

mypy.ini: [mypy]: Unrecognized option: strict = True

Straw suggestion:

mypy.ini: [mypy]: strict = True is not supported here: specify individual options instead

@JukkaL
Copy link
Collaborator

JukkaL commented Nov 8, 2017

Improving the error message is a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants