Can't configure which folder (d)mypy is run from
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comience revisando cómo el plugin construye y ejecuta el comando mypy, y luego reproduzca el comportamiento informado con un proyecto Django que contenga varias apps y un frontend separado. El trabajo estará terminado cuando los usuarios puedan configurar el directorio desde el que se ejecuta mypy y los imports se resuelvan sin salir del IDE; en el issue no se nombran archivos ni tests específicos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 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 <foldername>; 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).
- Lenguaje dominante
- Java
- Estrellas
- 319
- Forks
- 16
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de dropbox/mypy-PyCharm-plugin
-
Very slow on large projectsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
Does not work with intellij IDEAAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
dropbox/mypy-PyCharm-plugin#55 · 1 comentario ·
-
enhancement help wanted
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
dropbox/mypy-PyCharm-plugin#53 · 3 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
dropbox/mypy-PyCharm-plugin#52 · 1 comentario · 5 reacciones ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
dropbox/mypy-PyCharm-plugin#50 · 3 comentarios ·
Todos los issues de dropbox/mypy-PyCharm-plugin
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
Type/Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
ballerina-platform/static-code-analysis-tool#140 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
atomityhq/blog-cms#82 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
ready-for-triage triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
RedHatInsights/notifications-backend#5080 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Unhandled event loop exceptionAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
eclipse-4diac/4diac-ide#3103 ·
Los mantenedores suelen responder en 1 día