-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathruff.toml
More file actions
35 lines (34 loc) · 1.79 KB
/
Copy pathruff.toml
File metadata and controls
35 lines (34 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Ruff configuration for this repo's Python tooling (the conformance runner,
# scripts). Formatting/linting uses Ruff's defaults (line-length 88).
#
# There is no vendored calculator to protect: the ONE conformance path clones
# python/typing FRESH and runs the suite's OWN harness (see
# conformance/run_conformance.py). The downloaded fixtures under conformance/tests/
# and the fresh clone under target/ are git-ignored and already skipped by Ruff's
# respect-gitignore default.
#
# benchmarks/torture/cases/ IS excluded: those files are conformance-style
# SCORING FIXTURES where the line a statement sits on is part of the test. Each
# `# E` marks a line that must draw an error, and an error on any unmarked line
# is a false positive ([CHKARCH-TESTING-BENCH] scoreboard, run_torture.py). A
# one-line `def f() -> int: return <bad>` deliberately collapses the two
# diagnostics that construct draws onto the single marked line; reformatting it
# into def + body moves one diagnostic onto an unmarked line and fails the
# scoreboard. Formatting is not a safe transformation on line-scored data.
extend-exclude = ["benchmarks/torture/cases"]
# Ruff 0.16 added `*.md` to the default `include`, which formats Python fenced
# blocks inside Markdown. That is out of scope here: our prose (docs/specs/,
# book/manuscript/, website/src/) hand-aligns inline comments so a snippet reads
# as a table of "expression → inferred type", and the formatter collapses that
# alignment and injects PEP 8 blank lines into three-line illustrations. Declare
# the scope positively — Ruff's own pre-0.16 default set, minus Markdown — so a
# future default-list change cannot silently widen the gate again.
include = [
"*.py",
"*.pyi",
"*.pyw",
"*.ipynb",
"**/pyproject.toml",
"**/ruff.toml",
"**/.ruff.toml",
]