ty: re-enable the nine blanket-ignored rules with per-file ignores

Abierto
#290 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
ci-cd, tooling

Línea de trabajo

Start in pyproject.toml under [tool.ty.rules], where the nine blanket-ignored rules are listed, and in .github/workflows/ci.yml near line 53, where uvx ty runs. Run uv run ty check src/leech/ with those rules set to warn to reproduce the 218 diagnostics, beginning with the two in signal_refine.py at lines 733 and 736. Done means zero diagnostics with no blanket ignores, each remaining false positive carrying a # ty: ignore[rule] with a reason, and CI pinned to the locked ty version.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement good first issue review-2026-09

Tier P3 · effort M · from the 2026-09-13 review (CLI F7)

pyproject.toml [tool.ty.rules] ignores unresolved-attribute,
unresolved-import, possibly-missing-attribute, invalid-argument-type,
invalid-method-override, not-subscriptable, no-matching-overload,
too-many-positional-arguments, missing-argument, call-non-callable.
uvx ty check src/leech/ reports "All checks passed"; with those rules as
warnings it reports 218 diagnostics (136 invalid-argument-type, 36
unresolved-attribute, 15 call-non-callable, 10 possibly-missing-attribute,
9 invalid-method-override, 6 not-subscriptable, 3 missing-argument, 2
too-many-positional-arguments). The two at signal_refine.py:733,736 are the
union-dispatch false positive the config comment names; the rest are
unexamined. CI runs uvx ty at latest (ci.yml:53) while the dev pin is
ty>=0.0.64 (lock 0.0.78).

Acceptance criteria
  • The nine rules are enabled globally; each remaining false positive carries a # ty: ignore[rule] with a one-line reason; real defects found on the way are fixed in separate small commits (list them in the PR).
  • CI pins ty to the locked version (uv run ty, not uvx ty).
  • uv run ty check src/leech/ passes with zero diagnostics and no blanket ignores.
Non-goals
  • Typing tests/.
Lenguaje dominante
Python
Estrellas
0
Forks
0
Merge medio
11 h 17 min
PR fusionados (30 d)
23

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rnabioco/leech

Todos los issues de rnabioco/leech

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.