Skip to content

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

Open

Description

@falbany

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.

Activity

  1. added
    code-quality
    on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions