Add mypy excludes for collect_ignore entries
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- testing-qa
Direzione di ricerca
Read the linked conftest.py to understand the collect_ignore entry, then reproduce the mypy-status failure in pytest-mypy using the reported example. Trace how ignored files are selected for mypy and verify that the ignored file is no longer checked while other sources still are.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The jaraco.site project has a file in the tree that's ignored for tests.
However, even with that configuration, the file gets collected and is run by mypy and causes tests to fail:
__________________________________________________________________ test session ___________________________________________________________________
mypy exited with status 1.
...
====================================================================== mypy =======================================================================
jaraco/site/projecthoneypot/croakysteel.py:528: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "getSettings" [attr-defined]
jaraco/site/projecthoneypot/croakysteel.py:529: error: "Callable[[Any, Any, Any, Any], Any]" has no attribute "makeHTML" [attr-defined]
jaraco/site/projecthoneypot/croakysteel.py:533: error: "Callable[[Any, Any, Any, Any], Any]" not callable [operator]
Found 3 errors in 1 file (checked 11 source files)
============================================================= short test summary info =============================================================
FAILED conftest.py::mypy-status
============================================== 1 failed, 25 passed, 10 skipped, 3 warnings in 5.09s ===============================================
py: exit 1 (5.43 seconds) /Users/jaraco/code/jaraco/jaraco.site> pytest pid=33733
Is there a way that pytest-mypy can honor collect_ignore?
- Lingua principale
- Python
- Stelle
- 257
- Fork
- 33
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri 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 ·
-
realpython/pytest-mypy#190 · 1 commento · 1 assegnatario ·
-
integration
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
realpython/pytest-mypy#138 · 2 commenti · 2 reazioni ·
-
Expected mypy errors 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
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
xinnan-tech/xiaozhi-fde-talk#263 ·
-
rules
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
huggingface/Repo2RLEnv#163 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
huggingface/sentence-transformers#4074 ·
-
comp/dashboard invalid P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NousResearch/hermes-agent#121143 ·