[CI] Add ruff lint step to CI (+ optional pre-commit config)

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

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

評価

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

調査の方向性

The change touches requirements-dev.txt, pyproject.toml and .github/workflows/ci.yml. Start by reading the existing test job and the ci-ok gate in ci.yml, then run ruff locally against the source to see how many findings exist. Done means ruff is pinned, a [tool.ruff] section is in pyproject.toml, a lint job is added, ci-ok needs both test and lint, and CI is green.

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

説明

good first issue infra P2 quality

CI runs pytest but never lints the Python source itself (verified — no ruff/flake8/black anywhere in .github/workflows/ci.yml or pyproject.toml).

Steps:

  1. Add ruff to requirements-dev.txt (pinned)
  2. Add [tool.ruff] config to pyproject.toml — start permissive: default rules, line-length matching existing style; fix or noqa existing findings in the same PR
  3. Add a fast lint job to .github/workflows/ci.yml (single ubuntu leg) and wire it into the gate: ci-ok becomes needs: [test, lint]
  4. Optional follow-up PR: .pre-commit-config.yaml with ruff + trailing-whitespace hooks

Good first issue for someone who has set up ruff before. Keep the first PR small — config + green CI, not a style crusade.

主要言語
Python
スター
1
フォーク
4
平均マージ
12日 21時間
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

alphacrack/python-maithili-dsl のほかの issue

alphacrack/python-maithili-dsl の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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