leinardi / mypy-pycharm

A plugin providing both real-time and on-demand scanning of Python files with Mypy from within PyCharm/IDEA.
Apache License 2.0
194 stars 31 forks source link

Add option to use mypy from project venv #101

Closed ulope closed 2 years ago

ulope commented 2 years ago

Is your feature request related to a problem? Please describe. A single global mypy version isn't usable when working with multiple projects that each have their own mypy version or plugin requirements.

Describe the solution you'd like Add the option of using the mypy executable form the current projects venv.

Describe alternatives you've considered Allow variables/macros (specifically $PyInterpreterDirectory, similar to run config and File Watcher plugin) to be used in the mypy executable path.

Additional context n/a

ulope commented 2 years ago

Turns out this is already the default.

Somehow I had my interpreters misconfigured which lead to very confusing messages in the log.