Automatization idea: find duplicated constants
オープン
まだ誰も着手していません。
project: policy
- 主要言語
- Python
- スター
- 5.1k
- フォーク
- 2.1k
- 平均マージ
- 1日 19時間
- マージ済み PR(30日)
- 82
説明
Context: https://github.com/python/typeshed/pull/7065
Sometimes python / stubs do re-export constans from other modules.
In this case we can:
- Use re-export as well (correct option)
- Duplicate these constants (ok-ish, but not great)
Right now we do nothing to detect the second case.
I guess, that we can improve this!
We can write some kind of non-blocking helper who searches related modules for constants with the same names and suggests to re-use them if needed.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
python/typeshed の pull request 7065 のコンテキストから始め、関連するモジュールが定数をどのように再エクスポートしているかを確認します。次に、重複した定数名を見つけて再利用を提案する、ブロッキングしないヘルパーのスコープを決定します。アプローチと期待される動作が実装に十分な程度まで定義されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100