Is your feature request related to a problem? Please describe.
I often develop out of a monorepo, where my Python source root is not my project root. This has become an issue since introducing a local mypy plugin: when mypy is executed using the project root as the working directory, my mypy plugin cannot be imported; though, mypy runs fine in the terminal.
Describe the solution you'd like / alternatives considered
The ability to customize the working directory for the invoked mypy process would be one solution that would fit my own needs. However, others may have multiple locations where plugins may be imported from, and might benefit from being able to customize the environment variables passed to the mypy process. Customizing $PYTHONPATH would also fit my needs.
Is your feature request related to a problem? Please describe. I often develop out of a monorepo, where my Python source root is not my project root. This has become an issue since introducing a local mypy plugin: when mypy is executed using the project root as the working directory, my mypy plugin cannot be imported; though, mypy runs fine in the terminal.
Describe the solution you'd like / alternatives considered The ability to customize the working directory for the invoked
mypy
process would be one solution that would fit my own needs. However, others may have multiple locations where plugins may be imported from, and might benefit from being able to customize the environment variables passed to themypy
process. Customizing$PYTHONPATH
would also fit my needs.