10000 MAINT Enforce ruff/Perflint rules (PERF) · scikit-learn/scikit-learn@2848cdd · GitHub
[go: up one dir, main page]

Skip to content

Commit 2848cdd

Browse files
MAINT Enforce ruff/Perflint rules (PERF)
1 parent e25d49c commit 2848cdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 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", "PERF"]
152152
ignore=[
153153
# space before : (needed for how black formats slicing)
154154
"E203",
@@ -163,6 +163,8 @@ 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+
# `try`-`except` within a loop incurs performance overhead
167+
"PERF203",
166168
]
167169

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

0 commit comments

Comments
 (0)
0