python / python/mypy

Save extra step of enabling installed plugins

Abierto
#9,679 0 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

mypy should enable installed plugins by default or limit the amount of toil required to enable plugins.

Pitch

Currently, enabling a plugin requires a multi-step process:

  1. Install the plugin.
  2. Create a config file.
  3. Enable the plugin.

I imagine instead a world where:

Plugins are enabled by default

In this world, the act of installing a plugin would register a hook or entry point allowing the plugin(s) to be activated by default. In this world, the three-step process becomes a one-step process (install the plugin). One could disable the plugin by uninstalling (or not installing it in the first place) or perhaps through an additional configuration option (that presumably very few users would need).

Plugins can be enabled through the command-line

In this world, the three-step process becomes a two-step process, installing the plugin and enabling it during execution. This approach would limit the need to create mypy.ini files for small repro scripts or other impermanent actions. It would also make it more explicit what plugins are being used for a given invocation. Otherwise, to create a mypy repro that uses a plugin, a user is required to create a file so must communicate the creation of that file (and likely also clean it up after).

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

El issue no menciona archivos, tests ni puntos de entrada; empieza rastreando el flujo actual de instalación y configuración de plugins de mypy descrito en el proceso de tres pasos. Compara los enfoques propuestos de activación automática y de activación mediante la línea de comandos, y después aclara el comportamiento deseado y la semántica de la configuración. Se considera terminado cuando el enfoque acordado reduce la configuración necesaria para usar un plugin instalado.

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
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.