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

Support namespaced dictionary packages

Đang mở
#3,376 1 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python, yaml
Lĩnh vực
tooling

Hướng nghiên cứu

Start by reading the proposed src/codespell/contrib/foobar/__init__.py and dictionary paths, then locate how the existing builtin option is configured and consumed. Work out how namespaced packages would be discovered and how the proposed contrib values select dictionaries; done means an installed package's dictionaries can be selected through that option.

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

Mô tả

In an attempt to clean up common acronym and product name misspellings across various projects, it would be nice to provide auto-discovery of namespaced packages that contain dictionary definitions of various spellings.

As an example for the FooBar company, if I wanted to include a pre-commit dependency foobar-codespell, that provided the following dictionaries under a namespace:

src/codespell/contrib/foobar/__init__.py  # potential required export definitions
src/codespell/contrib/foobar/data/dictionary.txt
src/codespell/contrib/foobar/data/dictionary_product.txt

References to these as an aside to builtin via a new option contrib, such as the following:

builtin = "clear,usage,en-GB_to_en-US"
contrib = "foobar,foobar.product"
Ngôn ngữ chính
Python
Star
2.4k
Fork
531
Merge trung bình
15 giờ 5 phút
Pull request đã merge (30 ngày)
18

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không 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 codespell-project/codespell

Tất cả issue của codespell-project/codespell

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.