dropbox / dropbox/mypy-PyCharm-plugin
Can't configure which folder (d)mypy is run from
- Dominant language
- Java
- Stars
- 319
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Mypy seems to have problems with Django projects containing multiple apps, not being able to follow imports to the other apps when running from the root directory. I've already filed a [ticket with mypy](https://github.com/python/mypy/issues/9135) itself about this, but there's no answer there yet.
A workaround I've found using the console that when I cd into the main source folder instead of the project root and list all apps manually, the imports work as expected. However, that's not possible with the mypy plugin, and I hate having to switch out of my IDE just for running mypy when a plugin already exists - adding the option to choose where to run mypy from should be easy to configure. I've already tried appending `cd ;` to the mypy command, but that doesn't work (error: `The system cannot find the path specified.`). It works just fine if the command field only contains the `cd` command, without mypy, but combining both doesn't work.
The reason why the project root is not the source root in my case is that I have a multilanguage project (Python / Django for the backend, Typescript / ReactJS for the frontend).
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.