Skip to content

chore(deps): black を 26.5.1 に更新し開発ツールのバージョンを統一#283

Open
yo-tak wants to merge 2 commits into
mainfrom
chore-resolve-dependabot-issue
Open

chore(deps): black を 26.5.1 に更新し開発ツールのバージョンを統一#283
yo-tak wants to merge 2 commits into
mainfrom
chore-resolve-dependabot-issue

Conversation

@yo-tak

@yo-tak yo-tak commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

概要

Dependabot アラート (black <24.3.0 の ReDoS 脆弱性 GHSA-fj7x-q9j7-g6q6 / security/dependabot/12) を解消するため black を更新。あわせて開発ツール (flake8/isort) のバージョンが3箇所でズレていたため統一しました。

背景

black==22.10.0 などの開発ツールのバージョンが、以下の3箇所に重複してハードコードされていました。バージョンがズレるとローカルの pre-commit と CI の lint 結果が食い違うため、すべて揃える必要があります。

  • contributing/requirements.txt … コントリビューターのローカル開発ツール
  • .github/workflows/test.yml … CI の lint ジョブ
  • .pre-commit-config.yaml … pre-commit フック

変更内容

3箇所すべてを以下のバージョンに統一しました(exact pin)。

ツール Before (各ファイルでバラバラ) After (統一)
black 22.10.0 26.5.1
flake8 5.0.4 / 5.0.4 / 7.3.0 7.3.0
isort 5.10.1 / 5.11.5 / 5.11.5 5.11.5

black の更新に伴い、2024+ stable style に追従して4ファイルを再フォーマットしています(機能変更なし)。

  • fastlabel/utils/mask_image_util.py — magic trailing comma によるタプル展開
  • tests/test_lerobot_v3_parquet.py / test_pillow_exports.py / test_workspace_user.py — module docstring 直後の空行追加

検証

CI と同じ Python 3.10 + 確定バージョンで lint trio がすべてパスすることを確認済み。

  • black --check . → ✅ exit 0
  • flake8 . → ✅ exit 0(flake8 7.3.0 でも追加のコード修正なし)
  • isort --check . → ✅ exit 0

🤖 Generated with Claude Code

yo-tak and others added 2 commits June 26, 2026 14:59
black<24.3.0 の ReDoS 脆弱性 (GHSA-fj7x-q9j7-g6q6) に対応。
バージョンがズレると black --check が CI で落ちるため、ハードコードされて
いた3箇所をすべて 26.5.1 に統一:
- contributing/requirements.txt
- .github/workflows/test.yml
- .pre-commit-config.yaml

あわせて 2024+ stable style に追従して4ファイルを再フォーマット
(機能変更なし)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
contributing/requirements.txt・CI(test.yml)・.pre-commit-config.yaml で
flake8/isort のバージョンがズレており、ローカル pre-commit と CI で結果が
食い違う恐れがあったため最新に統一:
- flake8: 5.0.4 -> 7.3.0 (contributing/CI を pre-commit に合わせる)
- isort: 5.10.1 -> 5.11.5 (contributing を CI/pre-commit に合わせる)

flake8 7.3.0 でも既存コードは lint クリーン(コード修正なし)。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yo-tak yo-tak requested a review from rikunosuke June 26, 2026 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant