python / python/mypy

Put the .mypy_cache directory near the project configuration file instead of at the current working directory

Abierto
#15,466 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

feature
Lenguaje dominante
Python
Estrellas
20.6k
Forks
3.3k
Métricas de merge de PR
Métricas de PR pendientes

Descripción

Feature

If there is a project configuration file (pyproject.toml, mypy.ini etc), make the default .mypy_cache directory be near the configuration file instead of at the current working directory.

Pitch

Currently, the .mypy_cache directory is created by default in the current working directory. I was very surprised to find this. It means that I probably have many .mypy_cache directories hanging around in unexpected places, possibly in unrelated projects. It also means that I had to wait for the cache to be rebuilt when there was a perfectly good cache sitting elsewhere.

I think that when there is a notion of a project, the .mypy_cache directory should be at the root of the project. So, when mypy uses a project configuration file, I think that since there is an obvious project directory, the .mypy_cache directory should be there.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza rastreando el descubrimiento de la configuración del proyecto de mypy y el código que elige la ubicación predeterminada de .mypy_cache. Comprueba cómo pyproject.toml, mypy.ini y los archivos de configuración relacionados establecen un directorio del proyecto; después, define y prueba el comportamiento para ejecuciones configuradas frente a ejecuciones desde el directorio de trabajo actual.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
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
38/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.