python / python/mypy

Save extra step of enabling installed plugins

Ouverte
#9,679 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

feature
Langage dominant
Python
Étoiles
20.6k
Forks
3.3k
Métriques de merge des PR
Métriques de PR en attente

Description

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).

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Piste de recherche

L’issue ne mentionne aucun fichier, test ou point d’entrée ; commencez par retracer le flux actuel d’installation et de configuration des plugins mypy décrit dans le processus en trois étapes. Comparez les approches proposées pour l’activation automatique et l’activation via la ligne de commande, puis clarifiez le comportement attendu et la sémantique de la configuration. Le travail est considéré comme terminé lorsque l’approche convenue réduit la configuration nécessaire pour utiliser un plugin installé.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
tooling
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.