Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Pluggy 1.7.0 breaks scancode-toolkit

オープン
#794 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@adenzhou1350 がすでに取り組んでいます。

2026年10月15日 から。

  • #795 @adenzhou1350 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
devtools

調査の方向性

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時間
マージ済み PR(30日)
23

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pytest-dev/pluggy のほかの issue

pytest-dev/pluggy の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。