Run Studio's hooks with prek

オープン
#6,460 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions, python
領域
ci-cd, devtools

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
JavaScript
スター
214
フォーク
327
平均マージ
17時間 5分
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

learningequality/studio のほかの issue

learningequality/studio の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。