Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add --no-mypy option to disable mypy check

Aperta
#138 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

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

integration

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:

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di realpython/pytest-mypy

Tutte le issue di realpython/pytest-mypy

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.