https://pantsbuild.org/ logo
r

ripe-cpu-85141

08/30/2022, 3:33 PM
I think I read something about making MyPy faster in this channel. Am I right and if so, is it something I can use with pants 2.12 ?
h

hundreds-father-404

08/30/2022, 3:36 PM
Yes, thanks to awesome work by @bitter-ability-32190! 2.14 is the first release with it, which has had an alpha release. Another user asked us about MyPy today too actually -- we should try to get this release out sooner..
coke 1
best way to help us out is testing the releases (e.g. in a branch you don't land), so that we can discover any issues sooner
b

bitter-ability-32190

08/30/2022, 3:36 PM
Pants 2.14 now uses the MyPy cache. FWIW you can backport it to whatever version you want if you turn off th ebuilt-in mypy support and roll your own plugin. That's what we're doing in our repo which i susing 2.13rcX
1
r

ripe-cpu-85141

08/30/2022, 3:38 PM
you mean like copy/pasting pants.backend.python.typecheck.mypy from 2.14 to my own repo plugins?
h

hundreds-father-404

08/30/2022, 3:39 PM
exactly
b

bitter-ability-32190

08/30/2022, 3:39 PM
Thats step 1. Step 2 is undoing all the backwards-incompatible changes. Optional step 1.5 is to hit the liquor cabinet first 😛
r

ripe-cpu-85141

08/30/2022, 3:39 PM
ah 🙂
b

bitter-ability-32190

08/30/2022, 3:40 PM
I recommend copying the Pants 2.12 plugin, then just tacking on the mypy cache support
r

ripe-cpu-85141

08/30/2022, 3:40 PM
oh ok, I see
r

ripe-cpu-85141

08/30/2022, 3:41 PM
What about the schedule on releases? I was wondering how often the version got released. I guess 2.13 we be first in line, isn't it?
h

hundreds-father-404

08/30/2022, 3:42 PM
Yeah, we're close to 2.13 final release - should be this week, main blocker is finishing the release blog. 2.14 will have at least one more alpha release, and then typically 3-5 release candidates. I would expect probably 3 more weeks till it has a stable release
r

ripe-cpu-85141

08/30/2022, 3:43 PM
ah that's cool 🙂
thanks guys!
❤️ 1