aboutsummaryrefslogtreecommitdiffstats
path: root/ruff.toml
diff options
context:
space:
mode:
Diffstat (limited to 'ruff.toml')
-rw-r--r--ruff.toml7
1 files changed, 7 insertions, 0 deletions
diff --git a/ruff.toml b/ruff.toml
index 6d0f877..b7162a5 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -20,6 +20,13 @@ required-version = "==0.16.3"
target-version = "py311"
line-length = 88
+[format]
+# 0.16 formats Python fenced blocks inside markdown by default. The snippets
+# in docs/ are deliberately terse repro recipes (a `try: x` one-liner reads as
+# one step); a formatter blowing them up to three lines makes them worse, and
+# nothing executes them. Real code lives in .py files, which are formatted.
+exclude = ["*.md"]
+
[lint]
# Import sorting, and nothing else. `ruff check` can enforce a great deal more
# and one day it might, but this hook's job is formatting: one that also