VS Code Support for pytest-mypy
@eleanorjboyd ci sta già lavorando.
Dal 7/6/2025.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 257
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di realpython/pytest-mypy
-
integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
realpython/pytest-mypy#196 · 2 commenti ·
-
integration
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
realpython/pytest-mypy#160 · 4 commenti ·
-
integration
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
realpython/pytest-mypy#138 · 2 commenti · 2 reazioni ·
-
Expected mypy errorsForse di nuovo libera @dcbaker l’ha presa 714 giorni fa e non c’è nessuna pull request aperta. Aperta
realpython/pytest-mypy#105 · 4 commenti · 1 assegnatario ·
-
reporting
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
realpython/pytest-mypy#23 · 1 commento · 2 reazioni ·
Tutte le issue di realpython/pytest-mypy
Issue simili
-
upstream update
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
conan-io/conan-center-index#31098 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
john-kurkowski/tldextract#382 ·
-
comp/tools duplicate P2 sweeper:risk-compatibility tool/mcp type/bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
NousResearch/hermes-agent#132042 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepset-ai/haystack#13092 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100
feder-cr/invisible_playwright_mcp#1408 ·
I maintainer di solito rispondono entro 1 giorno