https://pantsbuild.org/ logo
#development
Title
# development
b

bitter-ability-32190

02/02/2022, 9:52 PM
Anyone have any thoughts on choosing one of these? • https://pypi.org/project/mypy-test/ -- would need to probably add as a plugin to
check
? So probably out. But like that it completely mirrors
mypy
https://github.com/typeddjango/pytest-mypy-plugins -- I don't like the YAML personally • https://github.com/davidfritzsche/pytest-mypy-testing -- Seems easy to integrate, but would there be pitfalls when running with Pants?
h

hundreds-father-404

02/02/2022, 9:54 PM
the last one seems the simplest and best. I don't imagine any pitfalls? it's a pytest plugin like any others
1
b

bitter-ability-32190

02/02/2022, 10:03 PM
It's a bummer any of this exists and
mypy
doesn't have some builtin "I expect this type to be XYZ" functionality
1
Looks like option 3 doesn't work with newer versions of pytest just yet 🥴
Honestly it's surprising this isn't better supported by tools. And FWIW the last 2 options run
mypy
in a subprocess which likely isn't ideal