You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.The text was updated successfully, but these errors were encountered: