From 0ecd780f5995c3e127c3ea4c4612b0eddc89682f Mon Sep 17 00:00:00 2001 From: Torben Nehmer Date: Thu, 3 Dec 2026 21:09:42 +0100 Subject: [PATCH] Format Python code blocks in Markdown via pre-commit CI runs ruff format over the whole repository, which includes code blocks in Markdown. The hook only saw Python files, so a local run passed and CI failed. Co-Authored-By: Claude Opus 5.5 --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4ff266..9371b12 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,8 @@ repos: name: ruff format entry: uv run ruff format language: system - types_or: [python, pyi] + # ruff also formats Python code blocks in Markdown; CI checks them too. + types_or: [python, pyi, markdown] - id: import-linter name: import-linter entry: uv run lint-imports --no-logo -- 2.54.1