Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#919 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
62/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
9
Fork
1
Merge medio
11h 8m
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di HodeTech/ForgeLM

Tutte le issue di HodeTech/ForgeLM

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.