Skip to content

Commit 6cdac1c

Browse files
rustyconoverclaude
andcommitted
chore: bump ruff 0.15.20 -> 0.16.0, exclude Markdown from the formatter
No .py source changed — the Python tree was already 0.16-clean. ruff 0.16.0 formats Python code blocks embedded in Markdown, which does not survive contact with our docs: mkdocs pymdownx.snippets includes live inside ```python fences, and ruff rewrites --8<-- "examples/calc_scalar_worker.py" into `--8 < --"..."`, breaking the include. That took out 10 test_documentation_examples cases. Exclude *.md from the formatter. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent cd244ac commit 6cdac1c

2 files changed

Lines changed: 27 additions & 21 deletions

File tree

‎pyproject.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ convention = "google"
142142

143143
[tool.ruff.format]
144144
quote-style = "double"
145+
# ruff >=0.16 formats Python code blocks embedded in Markdown. Our docs use
146+
# mkdocs `pymdownx.snippets` includes (`--8<-- "examples/foo.py"`) inside
147+
# ```python fences; ruff parses those as Python and rewrites them to
148+
# `--8 < --"..."`, breaking both the docs build and the doc-example tests.
149+
# Keep Markdown out.
150+
exclude = ["*.md"]
145151

146152
[tool.pydoclint]
147153
# Docstring consistency gate (complements ruff's `D` rules, which only check

‎uv.lock‎

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)