From f295b3dff14a4dcb04c690d83c9094fd4d769c77 Mon Sep 17 00:00:00 2001 From: StuBehan Date: Tue, 8 Sep 2026 13:45:18 +0100 Subject: [PATCH] ci: exclude markdown from ruff format --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 3effa63..a8528ae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -61,6 +61,14 @@ stackvox = ["py.typed", "data/stackvox-say"] line-length = 110 target-version = "py310" +[tool.ruff.format] +# Ruff 0.16 began formatting Python code blocks inside Markdown. Ours are +# illustrative rather than real code, and their layout is deliberate: the +# `normalize_for_speech` signature in docs/speech-normalization.md aligns its +# trailing comments into a readable column of flags, which the formatter +# collapses. Prose is a human call, so keep the formatter to the code. +exclude = ["*.md"] + [tool.ruff.lint] select = [ "E", # pycodestyle errors