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

Add support for mypy #74

Open
Hnasar opened this issue Mar 28, 2018 · 3 comments
Open

Add support for mypy #74

Hnasar opened this issue Mar 28, 2018 · 3 comments

Comments

@Hnasar
Copy link

Hnasar commented Mar 28, 2018

It looks like mypy has support for outputting Cobertura reports:
https://github.com/python/mypy/blob/master/mypy/report.py#L481

Maybe it'd be trivial to add support to mypy for diff-cover and diff-quality?

@Bachmann1234
Copy link
Owner

If Mypy outputs Cobertura then you can already use diff-cover! You just use that mypy coverage file. In theory I think it would all just work

@blueyed
Copy link
Contributor

blueyed commented Jan 17, 2020

Yeah, it should work already. Working on this for pytest in pytest-dev/pytest#6486.
This issue can be closed.

@blueyed
Copy link
Contributor

blueyed commented Jan 17, 2020

Maybe adding support for --violations=mypy might make sense though (https://github.com/Bachmann1234/diff_cover#adding-diff-quality-support-for-a-new-quality-checker), but that would have to be done for mypy itself then.

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

No branches or pull requests

3 participants