Run Studio's hooks with prek

Aberta
#6,460 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
15/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
github-actions, python
Domínio
ci-cd, devtools

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
JavaScript
Estrelas
214
Forks
327
Merge médio
17h 5min
PRs com merge (30d)
25

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de learningequality/studio

Todas as issues de learningequality/studio

Issues semelhantes

Mais issues de JavaScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.