deptry: declare hatchling and direct transitive imports (PIL, objc, WebKit) and actually run deptry

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

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

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
75/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
tooling

調査の方向性

Start by reading src/profiles/web/build_hook.py:9, server/routes/actions.py:15, and desktop/launcher.py:32-33 to see the imports. Edit pyproject.toml to declare hatchling, pillow, and pywebview[macOS] extras, then uncomment the deptry hook in .pre-commit-config.yaml and configure dev-group handling. Done when deptry src/ runs clean in pre-commit with no DEP findings.

索引モデルが issue の本文から書いたものです。

説明

code-quality

deptry src/ currently exits with 14 findings:

  • DEP001 — hatchling imported by src/profiles/web/build_hook.py:9 but absent from dependencies (it's the build backend; add to dev deps or ignore with a justification comment).
  • DEP003 — direct imports of transitive dependencies: PIL in server/routes/actions.py:15 (ships via qrcode[pil]), objc/WebKit in desktop/launcher.py:32-33 (pywebview's macOS extras). These should be declared explicitly (e.g. pillow, and the pyobjc/pywebview[macOS] extras) or suppressed per-line with justification — relying on "it happens to be installed" is exactly what breaks Briefcase bundles.
  • DEP002 noise — dev tools flagged as unused; configure deptry's dev-group handling so it runs clean.

deptry is a declared dev dependency but runs nowhere: the deptry hook in .pre-commit-config.yaml is commented out and there's no CI. Wire it into pre-commit (or the CI quality gate) with a clean baseline.

主要言語
Python
スター
1
フォーク
1
平均マージ
4時間 46分
マージ済み PR(30日)
55

環境構築

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

はじめの一歩

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

falbany/ProFiles のほかの issue

falbany/ProFiles の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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