Pluggy 1.7.0 breaks scancode-toolkit
维护者通常 1 天内回复
评估
调研方向
The traceback points to add_hookspecs in pluggy/_manager.py (around line 366), which raises 'did not find any hooks' when it is given the scancode plugincode.pre_scan module. Start by reading how that check decides a module has hookspecs, then compare it with the 1.6 behaviour. Pull request 795 is already open against this, so check its discussion before starting. Done means scancode's import works on 1.7.0 and the pluggy test suite passes.
由索引模型根据 Issue 内容生成。
描述
Posting also here, since I don't know which package is at fault.
The latest release (1.7.0) breaks scancode:
Traceback (most recent call last):
File "/usr/local/bin/scancode", line 5, in <module>
from scancode.cli import scancode
File "/usr/local/lib/python3.13/dist-packages/scancode/cli.py", line 57, in <module>
from plugincode import pre_scan
File "/usr/local/lib/python3.13/dist-packages/plugincode/pre_scan.py", line 30, in <module>
pre_scan_plugins = PluginManager(
stage=stage, module_qname=__name__, entrypoint=entrypoint, plugin_base_class=PreScanPlugin
)
File "/usr/local/lib/python3.13/dist-packages/plugincode/__init__.py", line 182, in __init__
self.manager.add_hookspecs(sys.modules[module_qname])
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/dist-packages/pluggy/_manager.py", line 366, in add_hookspecs
raise ValueError(
f"did not find any {self.project_name!r} hooks in {module_or_class!r}"
)
ValueError: did not find any 'pre_scan' hooks in <module 'plugincode.pre_scan' from '/usr/local/lib/python3.13/dist-packages/plugincode/pre_scan.py'>
See https://github.com/aboutcode-org/scancode-toolkit/issues/5363 for the report in the scancode project.
- 主要语言
- Python
- 星标
- 1.7k
- 派生
- 187
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 23
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pytest-dev/pluggy 的其他 Issue
-
Plugin registry compares plugins by equality, not identity可能已有人在做 @00200200 于 5 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
pytest-dev/pluggy#760 ·
维护者通常 1 天内回复
-
Hook tracing crashes with specced Mock arguments and results可能已有人在做 @Sandeep1519-droid 于 1 天前认领。 未关闭
难度 2/5 半天 新手友好度 25/100
pytest-dev/pluggy#792 · 1 条评论 ·
维护者通常 1 天内回复
-
deprecate passing None as a plugin instance可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 30/100
pytest-dev/pluggy#790 ·
维护者通常 1 天内回复
-
Defaulted positional-only hook parameters are forwarded as keywords可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 4/5 1-2 天 新手友好度 45/100
pytest-dev/pluggy#774 · 3 条评论 ·
维护者通常 1 天内回复
-
list_plugin_distinfo() keeps unregistered plugins可能已有人在做 @RonnyPfannschmidt 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
pytest-dev/pluggy#763 · 1 条评论 ·
维护者通常 1 天内回复
查看 pytest-dev/pluggy 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
cellrishi-code/claude-skills-atlas#165 ·
维护者通常 1 天内回复
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 72/100
open-webui/open-webui#32635 · 1 条评论 ·
维护者通常 1 天内回复
-
Filters: ?field:ne=null matches NULL rows instead of non-NULL ones可能已有人在做 @rshdhere 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
Netflix/metaflow-service#504 ·
-
needs-triage
难度 2/5 1-3 小时 新手友好度 84/100
gke-labs/kube-agents#3394 ·
维护者通常 1 天内回复
-
A2A audit timestamps end in +00:00Z (invalid ISO 8601)可能已有人在做 @O1sumitkumar 今天认领。 未关闭bug good first issue help wanted python
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复