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

Request: pulling latest dictionary in `pre-commit` hook

Aperta
#3,542 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
cli

Direzione di ricerca

Start with the existing dictionary-updating documentation linked in the issue, then trace how the CLI loads dictionary.txt when codespell runs as a pre-commit hook. Determine what behavior a flag should provide for the latest dictionary and for a specified repository commit. Done means the request is resolved with a defined, usable way for pre-commit users to select that dictionary.

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

Descrizione

I use codespell as a pre-commit hook, and I love it. It's really quite useful.

Normally, a new release of codespell comes with the latest dictionary.txt. I would like to be able to pull the latest dictionary.txt without relying on a codespell release. https://github.com/codespell-project/codespell/issues/116 made the same request, and ultimately made these docs: https://github.com/codespell-project/codespell#updating-the-dictionaries

However, these docs are not applicable to pre-commit users, as the dictionary.txt is ultimately squirreled away somewhere in ~/.cache/pre-commit/:

> find ~/.cache/pre-commit -name "dictionary.txt"
/Users/user/.cache/pre-commit/repo4_vfx6q6/codespell_lib/data/dictionary.txt
/Users/user/.cache/pre-commit/repo4_vfx6q6/build/lib/codespell_lib/data/dictionary.txt
/Users/user/.cache/pre-commit/repo4_vfx6q6/py_env-python3/lib/python3.12/site-packages/codespell_lib/data/dictionary.txt
/Users/user/.cache/pre-commit/repoa0vhi7kx/codespell_lib/data/dictionary.txt

The request is, can codespell expose some CLI flag that triggers codespell to use the latest dictionary.txt on master (or some arbitrary codespell repo's commit ID).

Lingua principale
Python
Stelle
2.4k
Fork
531
Merge medio
15h 55m
PR unite (30g)
17

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Nessun Dockerfile né file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

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 codespell-project/codespell

Tutte le issue di codespell-project/codespell

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.