-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruff.toml
More file actions
23 lines (21 loc) · 1.12 KB
/
Copy pathruff.toml
File metadata and controls
23 lines (21 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Lint only, with the rule set stated explicitly rather than inherited.
#
# `select` is pinned because ruff's DEFAULT set is not stable across releases:
# 0.16 widened it (UP, B, SIM, BLE, RUF …), so a repository relying on the
# default would go red on a ruff upgrade without a line of its own code
# changing. Pinning the ruff version alone does not fix that — it only defers
# it to the day someone bumps the pin. Naming the rules makes every addition a
# deliberate opt-in with the new findings visible in that PR's diff.
#
# These four are ruff's historical default and are clean across this repository
# today, so the CI gate added alongside this file starts green.
#
# `ruff format` is deliberately NOT gated: 22 of 37 files would be
# rewritten by it. Adopting the formatter is a reformat commit of its own, and
# a decision separate from turning linting on — not a side effect of it.
# line-length is left at ruff's default for the same reason: naming a width
# here would sit in the repo waiting for someone to run `ruff format` and
# rewrite the file layout.
target-version = "py312"
[lint]
select = ["E4", "E7", "E9", "F"]