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

Option to treat mypy failures as warnings #177

Closed
jaraco opened this issue Aug 25, 2024 · 1 comment · Fixed by #180
Closed

Option to treat mypy failures as warnings #177

jaraco opened this issue Aug 25, 2024 · 1 comment · Fixed by #180

Comments

@jaraco
Copy link

jaraco commented Aug 25, 2024

In jaraco/skeleton#143, I'm attempting to adopt more strict mypy settings for my projects. Because these checks are part of the test suite and CI checks, any failed check breaks the integration.

I'd like a way to treat mypy errors as non-blocking, to get a report of failures but not fail the check, similar to how warnings work in pytest. It would be nice if pytest-mypy could expose an option to do something similar.

I could see a number of ways to approach this need:

  • Have errors emitted as actual warnings.
  • Disable failures, but provide a separate report (similar to pytest-cov).
  • Treat the failures as xfail.

Maybe there are other options too.

@dmtucker
Copy link
Collaborator

I've taken a stab at this in #180.
@jaraco could you take a look when you get a chance and see if it meets your needs?

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

Successfully merging a pull request may close this issue.

2 participants