Save extra step of enabling installed plugins

未关闭
#9,679 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python
领域
tooling

调研方向

该 issue 未指明文件、测试或入口点;请先根据三步流程中描述的内容,追踪 mypy 当前的插件安装和配置流程。比较提议的自动激活方式和命令行激活方式,然后明确所需的行为和配置语义。当约定的方案减少使用已安装插件所需的设置时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

feature

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

主要语言
Python
星标
20.6k
派生
3.3k
平均合并
1 天 18 小时
30 天内合并 PR
54

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

python/mypy 的其他 Issue

查看 python/mypy 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。