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

Single-source the public-surface mypy gate in `[tool.mypy]` instead of four hand-copied flag strings

Đang mở
#919 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
62/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

Start in pyproject.toml, which has no [tool.mypy] section yet, and copy the current gate flags and files from ci.yml, CLAUDE.md, AGENTS.md and CONTRIBUTING.md. Declare them once in [tool.mypy] and reduce those four copies to a bare mypy call. Done when tests/test_guard_wiring.py checks the new form and passes.

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

Mô tả

area: dev-tooling help wanted severity: low source: roadmap wave: 4

Deferred work · S1-addendum: [tool.mypy] · severity Low · cost ~1 h · recorded in docs/roadmap/risks-and-decisions.md:250

Summary

The typing gate (mypy --strict --follow-imports=silent forgelm/__init__.py forgelm/_version.py tests/typing/public_surface_probe.py) is copied verbatim into ci.yml, CLAUDE.md, AGENTS.md and CONTRIBUTING.md, and only tests/test_guard_wiring.py keeps the copies identical. The Phase 16 S1 addendum deferred a [tool.mypy] single source because it would have changed the gate's invocation in the middle of a review round; that round has closed.

Condition or budget

None left: the reason for deferring (a mid-review change) no longer applies.

State today (re-checked 2026-10-09)

pyproject.toml has no [tool.mypy] section and no mypy.ini exists.

Related

#662 and #686 concern what the gate covers, not where its configuration lives.

Acceptance criteria

  • The flags and files are declared once in [tool.mypy], the four copies become a bare invocation, and tests/test_guard_wiring.py pins the new form.

Recorded in docs/roadmap/risks-and-decisions.md (read at f94595f) and re-checked against the code on 2026-10-09.

Ngôn ngữ chính
Python
Star
9
Fork
1
Merge trung bình
17 giờ 14 phút
Pull request đã merge (30 ngày)
17

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

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 HodeTech/ForgeLM

Tất cả issue của HodeTech/ForgeLM

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.