Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Migrate licenses.py to spec + code generation

オープン
#183 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
javascript, json, python

調査の方向性

まず、#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
  • LICENSELIST ids are ints 1–9, while the constants hold license names (CC_BY = "CC BY"); licenselookup.json keys are the ids as strings.
  • Every License.description is ""; licenselookup.json has no description field.
The Change
  • js/Licenses.js should export the constants as its default export and the license records as a named export.
Acceptance Criteria
  • le_utils/constants/licenses.py and js/Licenses.js are generated from spec/constants-licenses.json, licenselookup.json is deleted, and make build on 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/le-utils のほかの issue

learningequality/le-utils の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。