How to specify custom ty.toml configs?
まだ誰も着手していません。
評価
調査の方向性
pre-commit フックのエントリポイントから始め、引数が uv check に渡され、その後 ty に渡される仕組みを追跡します。--config-file と TY_CONFIG_FILE がどのように処理されるかを確認し、2 つのフック設定で異なる ty.toml ファイルを選択する方法を判断します。手動フックと通常のフックが、unresolved-import と unresolved-reference に対して要求された動作を持つ個別の設定を使用できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi! Thanks for this pre-commit hook. I'd like to setup two different hooks, one that runs manual and checks unresolved imports and references (slow, requires me to build my C++/Python bindings), and one that ignores unresolved-import and unresolved-reference.
For that purpose I'd like to pass two different ty.toml config files to the pre-commit hooks, but it looks like uv check for not forward --config-file to ty and I don't think we can easily pass TY_CONFIG_FILE in the pre-commit hook config either.
Do you have a suggestion on how to proceed?
- 主要言語
- Python
- スター
- 166
- フォーク
- 4
- 平均マージ
- 2時間 58分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
astral-sh/ty-pre-commit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
astral-sh/ty-pre-commit#46 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
astral-sh/ty-pre-commit#43 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
astral-sh/ty-pre-commit#29 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
astral-sh/ty-pre-commit#34 · コメント 4 件 ·
astral-sh/ty-pre-commit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
fedora-infra/anitya#2272 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
unitaryfoundation/mitiq#3205 ·
メンテナーはふだん 6 日以内に返信
-
[Bug]: Index worker test drops empty Git config values on Windows対応中かも @xiaoyesoso が今日担当しました。 オープンtriage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
agentscope-ai/agentscope#4377 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
area/config comp/agent P2 type/perf
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161039 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信