ai-cfia / ai-cfia/fertiscan

Evaluate Python type checker alternatives to mypy

Đang mở
#676 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
backend
Ngôn ngữ chính
HTML
Star
5
Fork
2
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
1

Mô tả

# Context

We currently use mypy 2.0 in strict mode for backend type checking. Faster, more accurate alternatives have gained traction (pyright, ty, pyrefly). Worth evaluating whether to stay on mypy or move to one of them.

# Outcome

A documented decision on which Python type checker the backend uses going forward, with tooling (pre-commit, CI) updated to match.

# Acceptance criteria

- A decision is made and documented: stay on mypy, or migrate to an alternative.
- The chosen tool supports our existing stack: strict-equivalent mode, SQLAlchemy inference (plugin or built-in), async code paths, Pydantic.
- Pre-commit hook and any CI integration reflect the decision.
- Existing `app/` code passes cleanly under the chosen tool (matching today's mypy-on-`app/` clean baseline).
- Rationale (why this tool, why not the others) is captured in the issue/PR thread.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

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.