Plans for Package Tooling
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
- 20/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
- build-system, ci-cd, developer-experience, tooling
Hướng nghiên cứu
Đọc toàn bộ thread của issue, sau đó kiểm tra pyproject.toml được tham chiếu, cấu hình CI và các quyết định về src-layout. Tách các mục checklist đã hoàn thành khỏi các đề xuất chưa được giải quyết và xác nhận phạm vi cụ thể cùng các tiêu chí nghiệm thu trước khi bắt đầu; hiện issue này chưa xác định thế nào là hoàn thành.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Agreed-Upon Package Plans:
(Read full Issue thread to see discussion)
Configuration/CI/CD:
- package management:
-
pyproject.toml(nosetup.pyorsetup.cfg) -
uv, including in CI
-
- build-system
-
hatch -
hatch-vcs
-
-
src-layout- When reaching API stability then try walled-garden API separation.
- tests / task running
-
pytestfor tests -
sybilfor doctests. - start with
tox(+tox-uv) - Static checking with mypy, pyright, basedmypy, & basedpyright to check from most-used to most-correct static typing. We aim for correctness (following the official typing spec), but want to ensure a good experience with the most-used checkers.
-
- linting / formatting / non-test checks
-
left-hook sp-repo-review-
ruff(configured in pyproject.toml), not black / isort / pylint / etc. - a markdown linter
- typos
-
- commit messages:
- gitmoji
- commitizen
- https://github.com/liorocks/cz-gitmoji for commiten-gitmoji bridge.
- versioning: (see discussion link)
- Date versioning (matching array-api) + minor & bugfix:
YYYY-MM-minor.bug main+ branch-per-version format: e.g.main,2023-11.2.1- Use meeseeksmachine for backporting from main branch to older version branch.
- Date versioning (matching array-api) + minor & bugfix:
- GH labels:
- using gitmoji
- automated
(Original Comment)
Here's a list of my suggestions for this package. @jorenham LMK what you agree with.
Configuration/CI/CD:
-
pyproject.toml, nosetup.pyorsetup.cfg - use
ruff(configured in pyproject.toml), not black / isort / pylint / etc. - use
uv, including in CI - build-system is
hatchandhatch-vcs - use
pre-commit - check with mypy and pyright, the most common type checkers. EDIT: adding basedmypy & basedpyright
Docs:
- same look and feel as the main docs.
- markdown
Package layout:
- src-layout
- use walled-garden separation between public and private API for easy adherence to PEP8 and dev QoL. EDIT: do at later date.
src/
array_api_typing/
__init__.py # defines the public API
_src/ # private API walled garden. Everything here is private and easily worked on by devs w/out public API consequences.
base.py # named whatever we want. no pre-fix underscores.
core.py # named whatever we want. no pre-fix underscores.
Package Contents:
Array. Let's start (pre-release) by not making it parametric, then see what we can do well, e.g. lessons from optype.- I would actually like to have 2 classes a "minimal" and "full", where the minimal is only
@runtime_checkable
class BaseArray(Protocol): # name TBD
def __array_namespace__(self, ...) -> Namespace: ...
and the full version contains all the attributes and methods.
NamespaceDType,Device, etc.
- Ngôn ngữ chính
- Python
- Star
- 27
- Fork
- 6
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của data-apis/array-api-typing
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
data-apis/array-api-typing#70 · 7 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
data-apis/array-api-typing#59 · 4 bình luận · 1 reaction ·
-
CI + lefthook Đang mở👷 CI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
data-apis/array-api-typing#40 · 1 reaction ·
-
Test suite for backends? Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
data-apis/array-api-typing#30 · 3 reaction ·
-
Refactor Test Suite Đang mở✅ tests
data-apis/array-api-typing#25 · 1 bình luận · 1 reaction · 1 người được giao ·
Tất cả issue của data-apis/array-api-typing
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·