big-fall-51153
05/13/2021, 3:17 PMenough-analyst-54434
05/13/2021, 3:17 PMbig-fall-51153
05/13/2021, 3:18 PMmypy
against each individual apphundreds-father-404
05/13/2021, 3:19 PM./pants typecheck ::
https://www.pantsbuild.org/v2.5/docs/python-typecheck-goal#incrementally-adopt-mypy-with-skip_mypytruebig-fall-51153
05/13/2021, 3:21 PMbig-fall-51153
05/13/2021, 3:27 PMhundreds-father-404
05/13/2021, 3:27 PM--mypy-config
or PANTS_MYPY_CONFIG
env var.
Or we could help with a plugin that behaves how you want, like running in multiple partitions and hardcoding that projectA
should use projectA/mypy.ini
enough-analyst-54434
05/13/2021, 3:34 PMAh. No, unfortunately that is not supported as MyPy itself does not support multiple config filesThat seems to contradict Nathan's current workflow. He does this somehow today.
big-fall-51153
05/13/2021, 3:34 PMenough-analyst-54434
05/13/2021, 3:35 PMhundreds-father-404
05/13/2021, 3:35 PMHe does this somehow today.True, how are you doing this today?
big-fall-51153
05/13/2021, 3:35 PMmypy.ini
enough-analyst-54434
05/13/2021, 3:35 PMenough-analyst-54434
05/13/2021, 3:36 PMbig-fall-51153
05/13/2021, 3:37 PMenough-analyst-54434
05/13/2021, 3:37 PMenough-analyst-54434
05/13/2021, 3:38 PMhundreds-father-404
05/13/2021, 3:38 PMprojectA/mypy.ini
and projectB/mypy.ini
etc. No need to set [mypy].config
anymore
However, MyPy only chooses one config file w/ it's autodiscovery logic. So you could not invoke ./pants typecheck ::
properly
You would need to do $ ./pants typecheck projectA:: ; ./pants typecheck projectB::
and so on. That could work, but ideally w/ Pants, ./pants typecheck ::
Just Works, which I think is where the plugin would come in to partition for you based on projectbig-fall-51153
05/13/2021, 3:43 PM