Bring Studio's linting in line with Kolibri's

Aberta
#6,459 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
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
1/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python, yaml
Domínio
build-system, tooling

Direção de pesquisa

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.

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 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.

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.