aboutsummaryrefslogtreecommitdiffstats
path: root/ruff.toml
diff options
context:
space:
mode:
authorblasty <peter@haxx.in>2026-08-21 12:14:46 +0200
committerblasty <peter@haxx.in>2026-08-21 12:15:15 +0200
commit02d02417800184fb76cd0245cdaa94c437aa4081 (patch)
tree7589e6e2e8426bb7370fc56eee52d1559c9d7e57 /ruff.toml
parentadopt ruff: pinned formatter + import sorting, opt-in pre-commit hook (diff)
downloadida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.tar.gz
ida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.tar.xz
ida-tui-02d02417800184fb76cd0245cdaa94c437aa4081.zip
reformat: ruff format + import sort, mechanically (see ruff.toml)
No behavior. Listed in .git-blame-ignore-revs (next commit).
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