Document mypy exit codes#19549
Draft
wyattscarpenter wants to merge 3 commits into
Draft
Conversation
sterliakov
reviewed
Jul 31, 2025
|
|
||
| * 2: a crash, bad arguments or configuration, and other non-standard conditions relating to mypy | ||
|
|
||
| There is currently `a bug <https://github.com/python/mypy/issues/19548>`_ |
Collaborator
There was a problem hiding this comment.
Thanks, this is definitely a good idea to be explicit about exit codes, but let's agree on them first. I added a few observations in #19548, this test is inaccurate as written, and I doubt documenting that would be helpful...
Contributor
Author
There was a problem hiding this comment.
True. I'm Draft-ing this PR until we fix (or otherwise resolve):
- Exit status when config error #15850
- Mypy Does Not Return Non-Zero Exit Code for Invalid mypy.ini Values Followed by Comments, including 'strict' #16764
- Syntax errors in the Python source files give exit code 2 when they should give 1 as exit code #19807
- perhaps when mypy should be re-run after --install-types, the exit code should be 3 #19808
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6003