Skip to content

Idea: Single flag to enable all warnings/errors #2376

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

Closed
FuegoFro opened this issue Oct 29, 2016 · 1 comment
Closed

Idea: Single flag to enable all warnings/errors #2376

FuegoFro opened this issue Oct 29, 2016 · 1 comment

Comments

@FuegoFro
Copy link
Contributor

I'm working on a code base where we have all the warning and error flags on, and want to keep our code as clean as possible. Recently, a new warning flag was added (--warn-no-return), which I only happened to find out about. It would be awesome if there was some rollup flag that new warnings/errors are added to (some sort of --strictest or --all-warnings-errors) so I could be confident that mypy is using the strictest checks it offers without having to continuously check back in on what flags are available.

@gvanrossum
Copy link
Member

I think that would be a bad idea. Each new (stricter) flag has the opportunity of causing many new spurious errors that you may have to deal with. Also, some flags may go well beyond strictness and violate e.g. PEP 484. Some may even conflict with each other. So I'm going to close this.

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

No branches or pull requests

2 participants