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

Exit status when config error #15850

Open
Dreamsorcerer opened this issue Aug 11, 2023 · 0 comments · May be fixed by #15880
Open

Exit status when config error #15850

Dreamsorcerer opened this issue Aug 11, 2023 · 0 comments · May be fixed by #15880
Labels
bug mypy got something wrong topic-configuration Configuration files and flags

Comments

@Dreamsorcerer
Copy link
Contributor

Dreamsorcerer commented Aug 11, 2023

When a config error is detected, mypy outputs a warning, but will still exit successfully, thus not being noticed in a CI run.

Example output:

.mypy.ini: [mypy]: enable_error_code: Invalid error code(s): unused-awaitable  # TODO(PY312): explicit-override
Success: no issues found in 9 source files

Expected:
A non-0 exit status if the configuration file is not correct.

@Dreamsorcerer Dreamsorcerer added the bug mypy got something wrong label Aug 11, 2023
@AlexWaygood AlexWaygood added the topic-configuration Configuration files and flags label Aug 11, 2023
@cibinmathew cibinmathew linked a pull request Aug 15, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-configuration Configuration files and flags
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@Dreamsorcerer @AlexWaygood and others