ai-cfia / ai-cfia/fertiscan

Evaluate Python type checker alternatives to mypy

Ouverte
#676 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
backend
Langage dominant
HTML
Étoiles
5
Forks
2
Merge moyen
1 j 7 h
PR mergées (30 j)
1

Description

# 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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.