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

Đang mở
#43 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
75/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
4 giờ 46 phút
Pull request đã merge (30 ngày)
55

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của falbany/ProFiles

Tất cả issue của falbany/ProFiles

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.