diff_cover icon indicating copy to clipboard operation
diff_cover copied to clipboard

Add support for mypy

Open Hnasar opened this issue 6 years ago • 3 comments

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?

Hnasar avatar Mar 28 '18 17:03 Hnasar

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

Bachmann1234 avatar Mar 28 '18 17:03 Bachmann1234

Yeah, it should work already. Working on this for pytest in https://github.com/pytest-dev/pytest/pull/6486. This issue can be closed.

blueyed avatar Jan 17 '20 06:01 blueyed

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.

blueyed avatar Jan 17 '20 06:01 blueyed