Add --no-mypy option to disable mypy check
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- testing-qa
Direzione di ricerca
Start by reviewing pytest.ini and the plugin option handling, then compare the linked pytest-pylint and pytest-cov implementations. The work is done when pytest accepts --no-mypy and skips the configured mypy check while the default --mypy behavior remains unchanged.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Right now I have --mypy in my pytest.ini file so that mypy runs by default when my tests are run, both locally and in CI
However, when I'm quickly iterating in testing a new feature, I would like to skip the mypy check since I first just want to make sure that the feature works.
Having a --no-mypy option to pass through to pytest when running locally would be great, rather than having to just deal with the mypy run each time, or go and manually modify my pytest.ini file to comment out the --mypy option.
The pytest-pylint and pytest-cov plugins provide this functionality:
- https://github.com/carsongee/pytest-pylint/blob/781d6a8d67377b543756d0123c6259b8df77c0a8/pytest_pylint/plugin.py#L33-L38
- https://github.com/pytest-dev/pytest-cov/blob/00713b3fec90cb8c98a9e4bfb3212e574c08e67b/src/pytest_cov/plugin.py#L110-L112
I'm happy to add a PR if you agree that this is a worthwhile feature
- 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à 3/5 1-2 giorni Idoneità per principianti 38/100
realpython/pytest-mypy#160 · 4 commenti ·
-
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 confirmed issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
open-webui/open-webui#30750 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100