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

Static task/collection definition in `invoke.yaml`

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, tooling

Hướng nghiên cứu

Start by reading the current task discovery behavior around tasks.py and the existing invoke.yaml configuration. Compare the proposed invoke.yaml and .invoke.yaml locations, /tasks or /invoke keys, module and Collection targets, and the entry_points.console_scripts model. Done means agreeing on one configuration shape and supporting task discovery for non-installed Python projects such as Jupyter notebooks.

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

Mô tả

Instead of searching through tasks.py which might be picked up from PATH, I think it would be better to move this/prioritize static definitions in invoke.yaml (also should search for .invoke.yaml) and equivalents at an object /tasks or /invoke. The configuration could be to point to file/module to load and search ns and @task from as currently done. Or better yet, point to the specific Collection object that defines these in a format equivalent to entry_points.console_scripts.

This will make it easy to define executables in non-installed python projects, e.g. jupyter notebooks.

Ngôn ngữ chính
Python
Star
4.8k
Fork
412
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. 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 pyinvoke/invoke

Tất cả issue của pyinvoke/invoke

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.