dropbox / dropbox/mypy-PyCharm-plugin

Cannot set MYPYPATH

Open
#14 5 comments 6 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
319
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Thanks for this plugin - it's nice to have this running constantly inside PyCharm.

There may be a way to do this, but it's not in the README as far as I could tell, so I thought I'd bring this up.

For those of us who want to use types that exist outside our current project, it is nice to be able to `--follow-imports silent`. However this just leads to `handler.py:2: error: Cannot find module named 'botocore.vendored'` or whatever the module is.

When running from the command line, I can just add my VENV site-packages dir to the environment variable MYPYPATH and everything works great. However I'm not sure how to usefully define an env var for this plugin. More importantly, it really needs to be something that the plugin can figure out based on some kind of config file, e.g. the mypy.ini config file in the project root. However, setting mypy_path inside that config file does not seem to get picked up by this plugin.

Any thoughts on how to make this work properly?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.