From a0e8a9a14fa752794feeac9abd0738fedf31ac4a Mon Sep 17 00:00:00 2001 From: Alexey Shalaev <75322386+AlexeyShalaev@users.noreply.github.com> Date: Sun, 6 Sep 2026 11:04:25 +0300 Subject: [PATCH] chore: keep ruff 0.16 out of the Markdown guides Generated projects get the same extend-exclude the org's repositories carry. --- template/pyproject.toml.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 075fe98..e7f2284 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -80,6 +80,10 @@ warn_unreachable = true [tool.ruff] line-length = 120 target-version = "py{{ python_min_version | replace('.', '') }}" +# The Markdown guides hold fragments -- a keyword argument on its own, a body +# without its def -- that read as code to a formatter and come out as +# something else. ruff 0.16 formats fenced Python in Markdown by default. +extend-exclude = ["*.md"] [tool.ruff.lint] select = ["F", "E", "W", "I", "B", "N", "S", "C4", "DTZ", "SIM", "TRY", "PERF", "RUF", "UP", "ANN", "T20", "PTH", "PLC", "PLE", "PLW"]