formatting.yml: job names 'format (black)' / 'format (isort)' are misleading — both run ruff
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
調査の方向性
.github/workflows/formatting.yml から始め、ジョブ名を pythonlint.yml の中立的な命名アプローチと比較します。Ruff コマンドを反映するように checks の名前を変更し、legacy 名に関するコメントを削除して、古い必須 check 名を使用しているリポジトリはルールセットを更新する必要があることを文書化します。
索引モデルが issue の本文から書いたものです。
説明
Problem
Since the ruff migration (#352 / #353), .github/workflows/formatting.yml no longer runs black or isort, but its jobs are still named after them:
name: "format (${{ matrix.tool }})"
...
matrix:
include:
- tool: black
command: ruff format --check .
- tool: isort
command: ruff check --select I .
The comment above explains the names are kept so the required status checks format (black) / format (isort) stay stable for branch protection.
Why it's misleading
- In the Checks UI and in branch rulesets, a failing "format (black)" suggests black is installed/configured — newcomers look for black config or try
black .locally. - Repositories created from the template inherit the legacy names even though they never used black/isort, so the "keep required check names stable" reason doesn't apply to them; they just copy the confusion (observed when building a new repo from this template).
pythonlint.ymlalready solved the same concern with a neutral, command-independent name ("Python Code Quality and Lint (...)").
Suggestion
- Rename the jobs to describe what runs, e.g.
Ruff format(ruff format --check .) andRuff import sorting(ruff check --select I .) — or one job "Ruff formatting" running both. - Note in the PR/README that repositories which use the old names as required checks must update their ruleset once.
- Drop the legacy comment afterwards.
- 主要言語
- Python
- スター
- 8
- フォーク
- 0
- 平均マージ
- 2分
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Hochfrequenz/python_template_repository のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
Hochfrequenz/python_template_repository#161 ·
メンテナーはふだん 1 日以内に返信
Hochfrequenz/python_template_repository の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
PolicyEngine/policyengine-us#10262 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
kellyjonbrazil/jc#788 ·
メンテナーはふだん 2 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
`/search.json` ignores the documented `editions.sort` parameter対応中かも @PranavD2905 が今日担当しました。 オープンAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
internetarchive/openlibrary#13989 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2: misleading query
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jeffknupp/association#478 ·