Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions template/pyproject.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ warn_unreachable = true
[tool.ruff]
line-length = 120
target-version = "py{{ python_min_version | replace('.', '') }}"
# The Markdown guides hold fragments -- a keyword argument on its own, a body
# without its def -- that read as code to a formatter and come out as
# something else. ruff 0.16 formats fenced Python in Markdown by default.
extend-exclude = ["*.md"]

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