Request: pulling latest dictionary in `pre-commit` hook
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Python
- スター
- 2.4k
- フォーク
- 531
- 平均マージ
- 15時間 5分
- マージ済み PR(30日)
- 18
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codespell-project/codespell のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
codespell-project/codespell#3997 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
codespell-project/codespell#3965 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Add "marcos"対応中かも @ekanshul が 20 日前に担当しました。 オープンdictionary
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
codespell-project/codespell#3920 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
codespell-project/codespell#4005 ·
メンテナーはふだん 1 日以内に返信
-
duplicate question
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
codespell-project/codespell#3998 ·
メンテナーはふだん 1 日以内に返信
codespell-project/codespell の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Graphify-Labs/graphify#4860 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
:bug: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
scikit-image/scikit-image#8377 ·
メンテナーはふだん 1 日以内に返信
-
Ingredient import validation accepts negative nutrient values and NaN対応中かも @LukeSekai が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
wger-project/wger#2564 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/ponymail-foal#351 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
メンテナーはふだん 4 日以内に返信