From 3522086a2a2d64e57871b4abcffe3b54e15f375e Mon Sep 17 00:00:00 2001 From: Ryuuji Yoshimoto Date: Fri, 14 Aug 2026 23:50:07 +0900 Subject: [PATCH] =?UTF-8?q?ruff=20format=20=E3=81=AE=E5=AF=BE=E8=B1=A1?= =?UTF-8?q?=E3=81=8B=E3=82=89=20Markdown=20=E3=82=92=E5=A4=96=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ruff format は Markdown 内の Python コードブロックも既定で整形対象にする。 このリポジトリの README には Python のコード例が無いので今は差分が出ないが、 1つ足しただけで CI が落ちる状態だった。 ruff check のほうは Markdown を見ない("No Python files found" を返す)ので、 lint と format のスコープを揃える意味もある。 Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01BsERiWbzZwB6EdGoyyqcpT --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 21fcc69..28dc8e1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,11 @@ line-length = 120 [tool.ruff.format] quote-style = "single" +# ruff format は Markdown 内の Python コードブロックも既定で整形対象にする。 +# README の説明用コードまで書き換わって差分が膨らむので外す。 +# ruff check のほうは Markdown を見ない("No Python files found" になる)ので、 +# lint と format のスコープを揃える意味もある。 +exclude = ["*.md"] [tool.ruff.lint] select = [