Skip to content

Commit 8fd88e8

Browse files
committed
chore(ruff[lint]): Adopt ruff's default rule set
why: ruff 0.16 ships a curated 413-rule default set as its recommended baseline. An explicit `select` replaces that set rather than extending it, so this project was running 351 rules and silently opting out of the default set. `extend-select` layers the project's own linters on top of the default set instead of in place of it. what: - Replace `select` with `extend-select`, same entries, one per line - Note in the file why `select` stays unset - Name the linter behind `FA100` instead of describing the rule Enabled rules go from 351 to 565. https://docs.astral.sh/ruff/linter/#rule-selection
1 parent 1eb507e commit 8fd88e8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ files = [
151151
target-version = "py310"
152152

153153
[tool.ruff.lint]
154-
select = [
154+
# `select` is deliberately unset: ruff 0.16 enables a curated default rule
155+
# set, and an explicit `select` would replace it rather than extend it.
156+
# `extend-select` layers this project's additional linters on top.
157+
extend-select = [
155158
"E", # pycodestyle
156159
"F", # pyflakes
157160
"I", # isort
@@ -168,7 +171,7 @@ select = [
168171
"PERF", # Perflint
169172
"RUF", # Ruff-specific rules
170173
"D", # pydocstyle
171-
"FA100", # future annotations
174+
"FA100", # flake8-future-annotations
172175
]
173176
ignore = [
174177
"COM812", # missing trailing comma, ruff format conflict

0 commit comments

Comments
 (0)