Skip to content

Commit dd06c49

Browse files
chore: keep ruff 0.16 out of the Markdown guides (#5)
Generated projects get the same extend-exclude the org's repositories carry.
1 parent 5c29959 commit dd06c49

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

template/pyproject.toml.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ warn_unreachable = true
8080
[tool.ruff]
8181
line-length = 120
8282
target-version = "py{{ python_min_version | replace('.', '') }}"
83+
# The Markdown guides hold fragments -- a keyword argument on its own, a body
84+
# without its def -- that read as code to a formatter and come out as
85+
# something else. ruff 0.16 formats fenced Python in Markdown by default.
86+
extend-exclude = ["*.md"]
8387

8488
[tool.ruff.lint]
8589
select = ["F", "E", "W", "I", "B", "N", "S", "C4", "DTZ", "SIM", "TRY", "PERF", "RUF", "UP", "ANN", "T20", "PTH", "PLC", "PLE", "PLW"]

0 commit comments

Comments
 (0)