[FEATURE]: Read configuration from `pyproject.toml`
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
- 48/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
Hướng nghiên cứu
Start by tracing where codebook searches for codebook.toml and .codebook.toml, then read the configuration parsing tests and follow the existing TOML loading path. Add pyproject.toml fallback handling for [tool.codebook], preserving the documented precedence, and verify that its settings match equivalent root configuration.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature Description
It would be nice if codebook could parse the configuration from a pyproject.toml in the project directory. pyproject.toml allows for arbitrary tool configuration in the [tool] table.
Use Case
Python projects tend to centralize tools configuration in pyproject.toml.
Proposed Solution
- If
codebook.tomlor.codebook.tomlare not found in the project directory, look for apyproject.toml. - If
[tool.codebook]exists, parse it for configuration. - It's expected that settings under
[tool.codebook]are the same ascodebook.tomlroot.
Alternative Solutions
No response
Examples
The README.md Configuration Options in a pyproject.toml.
[tool.codebook]
dictionaries = ["en_us", "en_gb"]
words = ["codebook", "rustc"]
flag_words = ["todo", "fixme"]
include_paths = ["src/**/*.rs", "lib/**/*.rs"]
ignore_paths = ["target/**/*", "**/*.json", ".git/**/*"]
ignore_patterns = [
'\b[ATCG]+\b',
'\d{3}-\d{2}-\d{4}',
'^[A-Z]{2,}$',
'https?://[^\s]+'
]
min_word_length = 3
use_global = true
Additional Context
Example references:
- Ngôn ngữ chính
- Rust
- Star
- 925
- Fork
- 59
- Merge trung bình
- 53 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 blopker/codebook
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 54/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 43/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement Zed issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
blopker/codebook#310 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[FEATURE]: Per-language `words`Đang mởenhancement workaround
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 49/100
blopker/codebook#297 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của blopker/codebook
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
polete-bermejo/floord#21 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
gbif/name-parser-rust#259 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nledford/Ladderback#1171 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: LANGSMITH_SAMPLING_RATE ignores fractional values (isdigit check), traces 100% of requestsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày