Semi-verbose flag that shows which files mypy analyzes
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 20.6k
- Forks
- 3.3k
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
Sometimes (example: #6385) it's useful to be able to see exactly which files mypy is processing. Currently the only way is to use -v and grep stderr for the word "Parsing".
Maybe this is common enough that we could spare a new command-line flag? It would print all the files for which a BuildSource object is created, and all the files that are reached by following imports (with some indicator of which is which).
The order in which files are printed should reflect the order in which they are processed (not the order in which they are specified).
I wouldn't mind adding extra info for each file (e.g. whether its cache entry is used), as long as it remains a single line per file.
Presumably there's also value in printing certain failures, e.g. modules which can't be found but for which no error message is printed (e.g. through --follow-imports=silent). But I would stop here.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza siguiendo la salida existente de -v que muestra "Parsing" en stderr; después, inspecciona dónde se crean los objetos BuildSource y dónde se siguen los imports. Se considera terminado cuando un nuevo flag de línea de comandos imprime una línea por cada file especificado directamente o importado, en el orden de procesamiento, con un indicador que distinga ambos casos; verifica la salida con ejecuciones representativas de mypy.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- cli, tooling
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100