Switch to uv and prek, and enforce the shared lint suite
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 15/100
- Issue-Typ
- Refactoring
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- eslint, github-actions, javascript, python
- Bereich
- build-system, ci-cd, documentation, tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
❌ 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.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1
- Forks
- 7
- Ø Merge
- 1 T. 10 Std.
- Gemergte PRs (30 T.)
- 4
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus learningequality/.github
-
github_actions
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 58/100
learningequality/.github#102 ·
-
Create process for unplanned work and automate PR handling based on linked issue assignmentEvtl. wieder frei @akolson hat das vor 180 Tagen übernommen, und es ist kein Pull Request offen. Offengithub_actions
learningequality/.github#67 · 1 Kommentar · 1 zugewiesene Person ·
Alle Issues in learningequality/.github
Ähnliche Issues
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
stac-utils/stac-fields#42 ·
-
[sec-check] SVG remote-reference gate misses src attributes, link hrefs and bare-string @importOffenagent/security hive/hosted-available-lke648397-260827-5n31 security
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
Fix #3381 does not fix #3343: watch() returns the ref, not the value, so setup() never re-runsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Add: Eurosport 1 PolskaOffenchannels:add check:passed
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 75/100
Maintainer antworten meist innerhalb von 2 Tagen