Investigate ty type checker alongside mypy
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
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- ci-cd, developer-experience, tooling
Hướng nghiên cứu
Start by reviewing pyproject.toml, the justfile, and the repository's CI configuration, then read the ty documentation and run ty alongside mypy. Add the development dependency, configuration, targets, and non-blocking CI step described in the issue. Done means both checkers run, diagnostics and speed differences are documented, and the CI step does not block builds.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
ty is Astral's Rust-based Python type checker (beta). It's 10-100x faster than mypy, checks unannotated function bodies by default, and supports advanced features like intersection types and reachability analysis.
libtmux is well-positioned for ty adoption:
- No mypy plugins in use (ty's biggest gap — no plugin system)
- Only 9
type: ignorecomments across the codebase - Already uses Astral's ruff and uv tooling
- Strict mypy configuration with full type annotations
Goals
- Add ty as a dev dependency alongside mypy (not replacing it)
- Add ty configuration in
pyproject.tomland justfile targets - Add ty to CI as a non-blocking step
- Compare diagnostics: what ty catches vs mypy, false positives, speed
- Determine if ty can eventually displace mypy
Approach
- Gradual adoption: run both checkers in parallel
- Start with known-noisy rules suppressed, re-enable incrementally
- CI runs ty with
continue-on-error: trueso it doesn't block builds - Document findings in the PR for future reference
References
- Ngôn ngữ chính
- Python
- Star
- 1.2k
- Fork
- 127
- Merge trung bình
- 2 giờ 13 phút
- Pull request đã merge (30 ngày)
- 1
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 tmux-python/libtmux
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
tmux-python/libtmux#759 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tmux-python/libtmux#745 · 2 bình luận ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
tmux-python/libtmux#744 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tmux-python/libtmux#731 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tmux-python/libtmux#654 ·
Tất cả issue của tmux-python/libtmux
Issue tương tự
-
documentation help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
simonw/sqlite-utils#872 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100