VS Code Support for pytest-mypy
@eleanorjboyd ya está trabajando en esto.
Desde el 7/6/2025.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Hello!
I am the maintainer of testing for vscode-python and have been investigating: https://github.com/microsoft/vscode-python/issues/23933. I have some questions in regards to how I can support pytest-mypy. This discussion is similar to the one I started on the pytest-ruff repo here: https://github.com/businho/pytest-ruff/discussions/32.
I explained a bit in the attached issue but what I think the best fix is would be including an extra "mypy" test node nested under each file node on the test explorer. (one side question I have is if there should be two nodes? The mypyFileItem and the mypyStatusItem?) We run tests based on their test-ids, so this would mean the mypy test would have a test-id that would be passed. Also it would fix the issue where no tests show up, this is just a side effect of the mypy node impacting the discovery process. Looking for a bit of advice as there is a piece of implementation.
What happens is while building the test tree to then display is I cycle through all the session.items see code. I am not seeing the mypy node- is this added after or should I expect it during run? I see if I run python -m pytest --mypy --collect-only from the terminal I do get 3 items:
<Dir 23933-pytest-mypy>
<MypyFile test_ran.py>
<MypyFileItem mypy>
<MypyStatusItem mypy-status>
<Module test_ran.py>
<Function test_mypy>
so during collect it does exist but im not sure how I can see / access it from my plugin.
I appreciate any advice on how to support this. I have a few more questions but wanted to get the ball rolling with this initial one. Thanks
- Lenguaje dominante
- Python
- Estrellas
- 257
- Forks
- 33
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
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 realpython/pytest-mypy
-
integration
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
realpython/pytest-mypy#196 · 2 comentarios ·
-
integration
Dificultad 3/5 1-2 días Aptitud para principiantes 38/100
realpython/pytest-mypy#160 · 4 comentarios ·
-
integration
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
realpython/pytest-mypy#138 · 2 comentarios · 2 reacciones ·
-
Expected mypy errorsQuizá libre de nuevo @dcbaker la tomó hace 714 días y no hay ningún pull request abierto. Abierto
realpython/pytest-mypy#105 · 4 comentarios · 1 asignado ·
-
Support for interleaved errorsAbiertoreporting
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
realpython/pytest-mypy#23 · 1 comentario · 2 reacciones ·
Todos los issues de realpython/pytest-mypy
Issues similares
-
Layers of type "3D Unknown" and "3D Measured Unknown" are refused, so FileGDB multipatch layers can't be readPosiblemente ocupada @aidannewsome la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
quantization
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
vllm-project/vllm#59904 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mikf/gallery-dl#9791 ·
-
Speaker custom-fields CSV export returns 404 instead of downloading dataPosiblemente ocupada @techvoyager-varun la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
fossasia/eventyay#6151 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
P4: low tooling
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
jeffknupp/association#318 ·