Does anyone here use mypy as a pre-commit hook? I'...
# general
p
Does anyone here use mypy as a pre-commit hook? I'm noticing that checking all transitive dependencies of changes takes a surprisingly long time and I'm wondering if just checking direct dependents is a reasonable alternative. Also interested in things to speed it up in general.
w
Are you doing a
--changed-since
?
p
yeah
doing
--changed-since=HEAD --changed-dependents=transitive
w
Yeah, mypy is just generally slow I find - I tend to do transitive typechecking and suffer, but I should note that I also only run pre-push hooks, not pre-commit - so 🤷 amortized pain Have you tried the other typecheckers to see if they are more bearable?
p
not in a while; I tried pyrite a while back but found it did not have type stubs for as many libraries
w
I think we also have pyre?