typeddjango / pytest-mypy-plugins

pytest plugin for testing mypy types, stubs, and plugins
https://pypi.org/project/pytest-mypy-plugins/
MIT License
100 stars 26 forks source link

Improve output capture from mypy when running in same process #108

Closed federicobond closed 1 year ago

federicobond commented 1 year ago

With these changes, it's now possible to use breakpoints to debug plugins.

For debugging to work, mypy must be installed without compilation and pytest must be run with --mypy-same-process:

python3 -m pip install --no-binary mypy -U mypy
sobolevn commented 1 year ago

Can you please rebase your PR?

federicobond commented 1 year ago

@sobolevn rebased against latest master, sorry for the delay.

federicobond commented 1 year ago

I think I fixed the lint error that was showing up in CI.