Use mypy within docker
See original GitHub issueStep 1: Are you in the right place?
- I have verified there are no duplicate active or recent bugs, questions, or requests
- [] I have verified that I am using the latest version of the plugin.
Step 2: Describe your environment
- Plugin version:
?
- PyCharm/IDEA version: PyCharm 2018.3.5 (Professional Edition) Build #PY-183.5912.18, built on February 26, 2019 JRE: 1.8.0_152-release-1343-b28 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0
- Mypy version:
?
Step 3: Describe the problem:
Steps to reproduce:
- When using project interpreter in docker compose, it is impossible to specify mypy executable path, and I am constantly getting popups saying that mypy is missing. I have set up it to use my host system mypy, and even installed it in the docker interpreter, but the pop ups continue.
Expected Results:
it should be possible to use mypy within docker.
10:55 Packages installed successfully: Installed packages: 'mypy'
10:58 Mypy Plugin (Mypy missing)
The project interpreter is missing Mypy, which is needed to properly check the imports.
Install Mypy
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:8
Top Results From Across the Web
cytopia/mypy - Docker Image
Alpine-based multistage-build version of Python mypy for reproducible usage in CI.
Read more >What's the best way to use docker for local dev and have my ...
I've been trying to work out a good local development setup based on docker and the one thing I haven't figured out is...
Read more >How to tackle pipeline slow down due to `mypy --install-types`
Currently I have to use the command mypy --install-types ... be put as part of docker image), from pure run mypy command (that...
Read more >Mypy and Continuous Integration sequence part 1 - Medium
As a bonus round, I'll also show using docker in continuous ... We will use Mypy later on today, but first we have...
Read more >Running mypy and managing imports
The name of a module is identical to the name you would use to import that module within a Python program. For example,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@leinardi Thank you very much for this plugin, it is super helpful Perhaps it is possible to add interpreter settings to the plugin settings? This would solve the problem of running in a docker, since I want PyCharm to use the remote interpreter but the plugin to use the local interpreter I’d be happy to submit a PR if you can give me some guidance
I also agree this is an important feature as a typical user of Mypy is a professional developer who also uses Docker/Vagrant for development environment. It would be nice if it would be at least possible to use Mypy executable from environment that is different than the project environment.
There is also the same problem for the Pylint plugin: https://github.com/leinardi/pylint-pycharm/issues/36