chore(deps): black を 26.5.1 に更新し開発ツールのバージョンを統一#283
Open
yo-tak wants to merge 2 commits into
Open
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
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)。
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 0flake8 .→ ✅ exit 0(flake8 7.3.0 でも追加のコード修正なし)isort --check .→ ✅ exit 0🤖 Generated with Claude Code