Bring Studio's linting in line with Kolibri's

Open
#6,459 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
1/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python, yaml

Research direction

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.

Written by the indexing model from the issue text.

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.

Dominant language
JavaScript
Stars
214
Forks
327
Avg merge
17h 5m
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/studio

All issues in learningequality/studio

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.