Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use mypy within docker

See original GitHub issue

Step 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:

  1. 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:open
  • Created 5 years ago
  • Reactions:9
  • Comments:8

github_iconTop GitHub Comments

rommguycommented, Nov 14, 2019

@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

hmoraveccommented, Apr 18, 2019

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:

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found