Migrate licenses.py to spec + code generation
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript, json, python
- 領域
- build-system, testing, tooling
調査の方向性
まず、#182 の移行パターンを le_utils/constants/licenses.py および resources/licenselookup.json と比較します。spec/constants-licenses.json を作成し、tests/test_licenses.py を更新してから、make build を実行する前に pytest tests/test_licenses.py -v を実行します。生成された Python と JavaScript の出力に指定された定数とライセンスデータが含まれ、resources/licenselookup.json が削除され、完全なテストスイートがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
licenses should be generated from a spec in the format #182 introduces. It has no known wrong values, so its public Python API should not change.
Complexity: Low
Target branch: main
Context
LICENSELISTids are ints 1–9, while the constants hold license names (CC_BY = "CC BY");licenselookup.jsonkeys are the ids as strings.- Every
License.descriptionis"";licenselookup.jsonhas nodescriptionfield.
The Change
js/Licenses.jsshould export the constants as its default export and the license records as a named export.
Acceptance Criteria
-
le_utils/constants/licenses.pyandjs/Licenses.jsare generated fromspec/constants-licenses.json,licenselookup.jsonis deleted, andmake buildon a clean checkout leaves no diff. - The pinned-API test from #182 passes unchanged for
licenses.
AI usage
I made the decisions recorded on #181 and #182; Claude Code applied them to this module against the current code and drafted the issue.
- 主要言語
- Python
- スター
- 7
- フォーク
- 37
- 平均マージ
- 1日 17時間
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
learningequality/le-utils のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
learningequality/le-utils#187 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
learningequality/le-utils#186 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
learningequality/le-utils#185 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
learningequality/le-utils#184 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
learningequality/le-utils#182 ·
learningequality/le-utils の issue をすべて見る
似ている issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
pytest-dev/pluggy#757 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
NousResearch/hermes-agent#134960 ·
メンテナーはふだん 1 日以内に返信
-
HTML backend: `<br>` leaks the internal sentinel U+E000 into list items, headings and captions対応中かも @morten-lagabote が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
docling-project/docling#4671 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
good first issue hacktoberfest infra
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信