From d446c67c646ef08fa8b9ca829d755b439865ca9f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 11:43:42 +0000 Subject: [PATCH] ci(ruff): pin ruff below 0.16 to match the pinned pre-commit hook CI installs the dev extra with a floating `ruff>=0.5`, so it picks up ruff 0.16, which formats Python code blocks inside Markdown by default. That makes `ruff format --check .` reformat README.md and fail, even though the pinned ruff-pre-commit hook (0.15.17) and local runs are clean. Pin `ruff==0.15.17` in the dev extra so CI matches the pre-commit hook and the lint gate is deterministic. No source changes. --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index a58952a..65e9eee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,10 @@ dev = [ "pytest-cov>=5", "respx>=0.21", "mypy>=1.10", - "ruff>=0.5", + # Kept in lockstep with the pinned ruff-pre-commit hook (.pre-commit-config.yaml). + # Pinned below 0.16: ruff 0.16 formats Python code blocks inside Markdown by + # default, which would make `ruff format --check .` reformat README.md. + "ruff==0.15.17", "pre-commit>=3.7", "build>=1.2", "twine>=5",