Bring Studio's linting in line with Kolibri's

Ouverte
#6,459 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
1/100
Type d'issue
Refactorisation
Clarté
Clairement spécifiée
Activité
Active
Stack technique
python, yaml

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
214
Forks
327
Merge moyen
17 h 5 min
PR mergées (30 j)
25

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de learningequality/studio

Toutes les issues de learningequality/studio

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.