Run Studio's hooks with prek

Abierto
#6,460 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
github-actions, python
Área
ci-cd, devtools

Línea de trabajo

The issue says contribution is closed, so this is not available as a first contribution. If continuing the work internally, read requirements-dev.txt, AGENTS.md, CLAUDE.md, the docs, the existing .pre-commit-config.yaml and the lint workflow. Run prek run --all-files; done means the workflow uses prek, catches a flake8 violation, and an installed hook rejects a commit containing one.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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 with pre-commit (requirements-dev.txt L64). Kolibri and kolibri-data-portal lint with prek, which runs the same .pre-commit-config.yaml, and rtibblesbot runs a repo's hooks with prek inside its dev container. Studio should move to prek.

Complexity: Low
Target branch: unstable

The Change
  • Engineers and CI should run Studio's hooks with prek, from the existing .pre-commit-config.yaml.
  • requirements-dev.txt, AGENTS.md, CLAUDE.md, the docs and the lint workflow should name prek, not pre-commit.
Acceptance Criteria
  • prek run --all-files passes on a fresh clone of unstable.
  • pre-commit no longer appears in requirements-dev.txt or .github/workflows/, and the CI lint check runs prek and fails on a flake8 violation.
  • After prek install, a commit with a flake8 violation is rejected.

AI usage

I used Claude Code to draft this. I chose to move Studio to prek as a separate step from its dev container. Claude Code read Studio's lint setup and drafted the sections.

Lenguaje dominante
JavaScript
Estrellas
214
Forks
327
Merge medio
17 h 5 min
PR fusionados (30 d)
25

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de learningequality/studio

Todos los issues de learningequality/studio

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.