-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Unchecked annotation note causes dmypy to exit with code 1 on a successful run #14101
Comments
I'm on top of this. |
Fixes: #14101 This prevents non-error messages (e.g. warnings) from causing dmypy to return exit code 1.
Is there any way to make warnings fail if we wanted that? My team finds the |
I don't think there is a way, but I see how such a flag for mypy may be useful. I would suggest you open a separate issue for this. In the meantime I guess you can write a bash wrapper script that fails if mypy shows some notes. |
We've noticed a similar issue with MyPy 1.1.1, could it be a regression? |
I also noticed a similar issue with 1.14.1 1, but it only appears on the second run, after the daemon has been started. Footnotes
|
Bug Report
When the code triggers
annotation-unchecked
warnings, bothmypy
anddmypy
print a green "success" line. However there's an unexpected difference between exit codes. Mypy exits with0
as expected in a successful check, but dmypy exits with a1
. This prevents me from using dmypy in automated scenarios.To Reproduce
Expected Behavior
Successful runs should return zero exit code in both mypy and dmypy.
Environment
A fresh venv with latest mypy installed, no configuration files at all.
The text was updated successfully, but these errors were encountered: