Switch to uv and prek, and enforce the shared lint suite
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 15/100
- Issue 類型
- 重構
- 描述清晰度
- 描述清楚
- 活躍度
- 活躍
- 技術堆疊
- eslint, github-actions, javascript, python
研究方向
Start with .pre-commit-config.yaml, pre-commit.yml, package.json, .eslintrc.js, .prettierrc.js, .github/dependabot.yml, and the scripts/ directory; compare the referenced Kolibri hook set. Verify the clean-checkout commands and workflow, dependency graph entries, removal of requirements-dev.txt and pip installs, lint fixes, and the new docs/ setup page. This issue is explicitly not open for contribution.
由索引模型根據 Issue 內容生成。
描述
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Nothing in this repo enforces the JS or Python linting our other repos run: ESLint reports 13 errors and Prettier flags 9 files on main. This brings its tooling in line with Kolibri, Studio, and Morango.
Complexity: Low
Target branch: main
Context
.pre-commit-config.yamlruns pre-commit-hooks v4.1.0, yamlfmt v0.14.0, actionlint v1.7.7, and the localgenerate-automationdrift check.requirements-dev.txtlistspre-commit;pre-commit.ymlinstalls prek withpipx install prek.- The repo has JS under
scripts/(ESLint and Prettier configured inpackage.json,.eslintrc.js,.prettierrc.js) and two Python scripts underscripts/. .github/dependabot.ymlcovers npm, pip, and github-actions monthly with a 7-day cooldown.
The Change
- The repo should be a uv project like Kolibri, Studio, and Morango, declaring
requestsfor the Python scripts andprekin a dev group. .pre-commit-config.yamlshould run the suite our other repos run: pre-commit-hooks, ruff and ruff-format, yamlfmt, actionlint, zizmor, uv-lock, and ESLint and Prettier on the JS, alongside the existinggenerate-automationcheck.- Existing violations should be fixed, not excluded.
- Dependabot should replace its
pipentry withuvand add thepre-commitecosystem, monthly with the 7-day cooldown, hook bumps grouped into one PR.
Out of Scope
- Autofixing lint failures on PRs, including restoring the pre-commit.ci lite action.
Acceptance Criteria
- On a clean checkout,
uv sync --group devthenuv run prek run --all-filespasses. -
pre-commit.ymlruns the same hooks through uv and passes onmain. -
requirements-dev.txtis removed and no workflow runspip install. - Insights > Dependency graph > Dependabot lists
uv,pre-commit,npm, andgithub-actions, and nopip. - A page in
docs/covers setting up a dev environment: installing the Python and JS dependencies and the prek git hook.
References
- Kolibri's hook set: https://github.com/learningequality/kolibri/blob/develop/.pre-commit-config.yaml
- Dependabot
pre-commitecosystem: https://github.blog/changelog/2026-03-10-dependabot-now-supports-pre-commit-hooks/
AI usage
I chose the scope: prek and uv as in our other repos, Dependabot over a scheduled autoupdate job, and autofix left out. Claude Code surveyed this repo's and Kolibri's configs and drafted the sections, which I reviewed one by one.
- 主要語言
- JavaScript
- 星號
- 1
- 分支
- 7
- 平均合併
- 1 天 10 小時
- 30 天內合併 PR
- 4
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
learningequality/.github 的其他 Issue
-
github_actions
難度 4/5 3-5 天 新手友好度 58/100
learningequality/.github#102 ·
-
Create process for unplanned work and automate PR handling based on linked issue assignment可能重新可做 @akolson 於 180 天前認領,目前沒有進行中的 PR。 未關閉github_actions
learningequality/.github#67 · 1 則留言 · 已指派 1 人 ·
查看 learningequality/.github 的全部 Issue
相似的 Issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)未關閉
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
stac-utils/stac-fields#42 ·
-
agent/security hive/hosted-available-lke648397-260827-5n31 security
難度 2/5 1-3 小時 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
channels:add check:passed
難度 1/5 1 小時以內 新手友好度 75/100
維護者通常 2 天內回覆