Format Python code blocks in Markdown via pre-commit
CI / checks (pull_request) Successful in 53s

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 <noreply@anthropic.com>
This commit is contained in:
torbenandClaude Opus 5.5 committed 2026-12-03 21:09:42 +01:00
1 parent b4087cdf6e
commit 0ecd780f59
1 file changed
+2 -1
+2 -1
View File
@@ -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