Bring Studio's linting in line with Kolibri's

Aperta
#6,459 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
1/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, yaml

Direzione di ricerca

Read Studio’s existing pre-commit configuration and compare it with Kolibri’s linked .pre-commit-config.yaml and pyproject.toml rules. The issue says the initial prek switch must land first, with the remaining migration split into sub-issues. Done means Studio’s hooks use prek and the scoped Python, YAML, and workflow linting matches Kolibri; the issue explicitly says it is not open for contribution.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

DEV: dev-ops

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Studio lints Python with flake8, flake8-print, reorder-python-imports and black 20.8b1, run by pre-commit, and it has no YAML or workflow linting. Kolibri runs its hooks with prek, lints and formats Python with ruff, and lints YAML and workflows with yamlfmt, actionlint, zizmor and check-yaml (.pre-commit-config.yaml). Studio should match Kolibri, so that one set of tools and rules covers both repos and rtibblesbot can run Studio's hooks with prek inside its dev container.

Scope
  • Run Studio's hooks with prek.
  • Replace flake8, flake8-print, reorder-python-imports and black with ruff and ruff-format, using Kolibri's rule selection (pyproject.toml L173-203).
  • Add Kolibri's YAML and workflow hooks: yamlfmt, actionlint, zizmor and pre-commit-hooks' check-yaml.
  • Excluded: frontend linting, and the hooks that apply only to Kolibri (uv-lock, mypy, sqlfluff and its local hooks).
Strategy
  • The prek switch lands first. Whoever picks up the rest breaks it into sub-issues.

AI usage

I used Claude Code to draft this. I chose Kolibri's regime as the target, the scope including YAML and workflow hooks, and the prek switch going first. Claude Code compared the two repos' hook configs and drafted the sections.

Lingua principale
JavaScript
Stelle
214
Fork
327
Merge medio
17h 5m
PR unite (30g)
25

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di learningequality/studio

Tutte le issue di learningequality/studio

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.