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

Delegate interpreting the yaml away from collection #152

Closed delfick closed 5 days ago

delfick commented 4 months ago

For https://github.com/typeddjango/pytest-mypy-plugins/issues/144 I think it'll be useful if the yaml definition can be given more control over how the test actually runs it.

To help with that this PR makes it so that the pytest entry point is less responsible for those decisions, and that there is more separation between the raw definition and the processed idea of what the test should do.

I've split this PR into many commits to make it easier to see the small changes that happen as I move code around (best seen with the github ignore whitespace option).

The notable changes include

delfick commented 5 days ago

Closing this as I've turned it and a bunch of other changes into it's own fork :) https://github.com/typeddjango/pytest-mypy-plugins/issues/144#issuecomment-2337061145