8000 Enforce ruff rules (RUF) · scikit-learn/scikit-learn@6464e56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6464e56

Browse files
Enforce ruff rules (RUF)
1 parent ae0d00a commit 6464e56

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ preview = true
148148
# This enables us to use the explicit preview rules that we want only
149149
explicit-preview-rules = true
150150
# all rules can be found here: https://beta.ruff.rs/docs/rules/
151-
select = ["E", "F", "W", "I", "CPY001"]
151+
select = ["E", "F", "W", "I", "CPY001", "RUF"]
152152
ignore=[
153153
# space before : (needed for how black formats slicing)
154154
"E203",
@@ -163,6 +163,13 @@ ignore=[
163163
# F841 is in preview (july 2024), and we don't care much about it.
164164
# Local variable ... is assigned to but never used
165165
"F841",
166+
# some RUF rules trigger too many changes
167+
"RUF002",
168+
"RUF003",
169+
"RUF005",
170+
"RUF012",
171+
"RUF015",
172+
"RUF021",
166173
]
167174

168175
[tool.ruff.lint.flake8-copyright]

0 commit comments

Comments
 (0)
0