Skip to content

Commit 02dcb65

Browse files
Use ruff select instead of extend-select to keep the rule set explicit (#6964)
1 parent b03a01f commit 02dcb65

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ ignore = [
159159
"C901", # function complexity
160160
"E501",
161161
]
162-
extend-select = ["E", "F", "I", "W", "UP", "B", "T", "C"]
162+
# `select`, not `extend-select`: the rule set is explicit, so a ruff release that expands its default
163+
# selection (0.16 raised the defaults from 59 to 413 rules) does not silently enable new rules.
164+
select = ["E", "F", "I", "W", "UP", "B", "T", "C"]
163165

164166
[tool.ruff.lint.per-file-ignores]
165167
# Allow prints in auxiliary scripts

0 commit comments

Comments
 (0)