Save extra step of enabling installed plugins
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 20.6k
- Forks
- 3.3k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
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:
- Install the plugin.
- Create a config file.
- 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).
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt keine Dateien, Tests oder Einstiegspunkte; beginne damit, den aktuellen Ablauf für die Installation und Konfiguration von mypy-Plugins nachzuverfolgen, der im dreistufigen Prozess beschrieben ist. Vergleiche die vorgeschlagenen Ansätze zur automatischen Aktivierung und zur Aktivierung über die Kommandozeile und kläre anschließend das gewünschte Verhalten und die Semantik der Konfiguration. Als erledigt gilt die Aufgabe, wenn der vereinbarte Ansatz den erforderlichen Einrichtungsaufwand für die Nutzung eines installierten Plugins reduziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100