Number of source files checked in output is misleading with -m specifiers
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 20.6k
- Fork
- 3.3k
- Merge medio
- 1g 18h
- PR unite (30g)
- 54
Descrizione
Bug Report
I had a test directory with several files in it. When I switched from mypy test/ to mypy -m test, I found that the output at the result became a bit misleading:
-Found 80 errors in 2 files (checked 32 source files)
+Found 80 errors in 2 files (checked 3 source files)
To Reproduce
mkdir test
touch test/__init__.py test/a.py test/b.py
mypy test/
mypy -m test
Expected Behavior
I would expect the same output in both cases.
There are probably alternate acceptable behaviors - but this one is confusing.
Your Environment
- Mypy version used: .990
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.
Direzione di ricerca
Inizia eseguendo la riproduzione segnalata con mypy test/ e mypy -m test usando i comandi elencati. Traccia come vengono conteggiati i file sorgente per gli argomenti directory rispetto agli argomenti modulo, quindi rendi coerente il riepilogo risultante e verifica che entrambi i comandi riportino lo stesso numero di file sorgente controllati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100