https://pantsbuild.org/ logo
#general
Title
# general
p

prehistoric-wire-35783

01/09/2023, 7:09 PM
Hello everyone! Is there a way to make
./pants check
behave equivalently to
mypy --install-types --non-interactive
? Reading through the past chats, I think the answer is no, but I just wanted to double check. I presume the current solution was put in place to create the pex environment. While is not bad, it would be nice if it can support install type stubs on the fly for minimal maintenance...
w

wide-midnight-78598

01/09/2023, 7:30 PM
p

prehistoric-wire-35783

01/10/2023, 9:02 AM
In
pants.toml
I tried this trick, but it doesn't solve the problem.
Copy code
args = ["--install-types", "--non-interactive"]
I presume it is because the pex environment is frozen or something like that. However this does work
Copy code
extra_type_stubs = ["types-PyYAML", "types-python-dateutil"]
It's just annoying to have to specify the extra type stubs and maintain the list...