Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Pre-commit GitHub action doesn't require package installation

Đang mở
#620 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
55/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, python
Lĩnh vực
ci-cd

Hướng nghiên cứu

Start with the pre-commit GitHub Actions workflow in this template's .github/workflows directory, and compare it with the hats-query example linked in the issue, around line 41. Find the step that installs the package and check whether it can install only the development dependencies instead. Done when the pre-commit job no longer installs the package itself and the hooks still pass in CI.

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

Mô tả

enhancement

The pre-commit hooks we run in Github Actions don't require the package to be installed, and installation could be an expensive operation. We can install development dependencies only instead, see example in hats-query

https://github.com/astronomy-commons/hats-query/blob/f8e38cedfc555149cf3e1583fa855c3f1e91a275/.github/workflows/pre-commit-ci.yml#L41

Ngôn ngữ chính
Jinja
Star
85
Fork
16
Merge trung bình
21 giờ 19 phút
Pull request đã merge (30 ngày)
15

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 lincc-frameworks/python-project-template

Tất cả issue của lincc-frameworks/python-project-template

Issue tương tự

Thêm issue về DevOps

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.