pytest.ini wins even when it's empty, and `.pytest.ini` is never read
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
- 84/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python, typescript
- Lĩnh vực
- developer-experience, testing
Hướng nghiên cứu
Bắt đầu bằng cách đọc readPytestSettings và PROJECT_FILES, sau đó tìm các bài kiểm thử với fixture tổng hợp được mô tả trong CONTRIBUTING.md. Thêm một fixture để pytest.ini trống được ưu tiên hơn pyproject.toml và một fixture khác để .pytest.ini cấu hình python_files; chạy npm test. Hoàn tất khi cả hai trường hợp đều đạt và chỉ riêng .pytest.ini cũng được nhận diện là một dự án Python.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
pytest's rule: pytest.ini "will always match and take precedence … even if empty", and it matches even without a [pytest] section. The hidden .pytest.ini works the same way. Only pyproject.toml, tox.ini and setup.cfg need their section to match. The first match wins, and options are never merged.
readPytestSettings skips any file without the section (if (!section) continue;) and never looks at .pytest.ini. So:
- With a
pytest.inithat has only a comment, plus apyproject.tomlthat setspython_files = ["check_*.py"], DiffCI usescheck_*.py. pytest uses its defaults,test_*.pyand*_test.py. DiffCI then doesn't seetest_x.pyas a test. - With only a
.pytest.inithat setspython_files = check_*.py, DiffCI uses the defaults and doesn't seecheck_x.pyas a test.
Done when:
- The search order is
pytest.ini,.pytest.ini, thenpyproject.toml,tox.iniandsetup.cfg. - An existing
pytest.inior.pytest.inistops the search, even without a[pytest]section. pytest's defaults apply when it has no section. .pytest.iniis added toPROJECT_FILES, so a repository whose only pytest file is.pytest.iniis detected as a Python project.- There is a test for each of the two cases above.
New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.
- Ngôn ngữ chính
- TypeScript
- Star
- 0
- Fork
- 4
- Merge trung bình
- 18 giờ 41 phút
- Pull request đã merge (30 ngày)
- 48
Chuẩn bị môi trường
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
- Đọ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 DiffCI/core
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Planner: splitParts regex is quadratic on a quote followed by many backticks, so the fuzz test fails at randomCó thể đã có người làm @FredApps đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Agent tools: changed_files lists only the new path of a renamed fileCó thể đã có người làm @FredApps đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
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 84/100
DiffCI/core#243 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
adapter good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
agent-ready area: ui-server priority: p3 type: test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
schlessera/brain-kit#4249 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation tool triaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
can1357/oh-my-pi#19608 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
dependencies tech-debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
bcgov/nr-waste-plus#1549 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
blixvip/solana-token-meta#17 ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
blixvip/solana-tx-parse#18 ·