Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ebf2ab

Browse filesBrowse files
MNT: Enforce ruff/Perflint rules (PERF)
1 parent 488ee92 commit 5ebf2ab
Copy full SHA for 5ebf2ab

File tree

1 file changed

+20
-18
lines changed
Filter options

1 file changed

+20
-18
lines changed

‎ruff.toml

Copy file name to clipboardExpand all lines: ruff.toml
+20-18Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,31 +27,33 @@ extend-select = [
2727
"TID",
2828
"FLY",
2929
"I",
30+
"PERF",
3031
"E",
3132
"W",
3233
"PGH",
3334
"PLE",
3435
"UP",
3536
]
3637
ignore = [
37-
"C408", # Unnecessary `dict()` call (rewrite as a literal)
38-
"ISC002", # Implicitly concatenated string literals over multiple lines
39-
"PIE790", # Unnecessary `pass` statement
40-
"E241", # Multiple spaces after comma
41-
"E265", # Block comment should start with `# `
42-
"E266", # Too many leading `#` before block comment
43-
"E302", # TODO: Expected 2 blank lines, found 1
44-
"E402", # Module level import not at top of file
45-
"E712", # Avoid equality comparisons to `True` or `False`
46-
"E721", # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
47-
"E731", # Do not assign a `lambda` expression, use a `def`
48-
"E741", # Ambiguous variable name
49-
"F403", # `from ... import *` used; unable to detect undefined names
50-
"F405", # may be undefined, or defined from star imports
51-
"F821", # Undefined name
52-
"F841", # Local variable is assigned to but never used
53-
"UP015", # Unnecessary mode argument
54-
"UP031", # TODO: Use format specifiers instead of percent format
38+
"C408", # Unnecessary `dict()` call (rewrite as a literal)
39+
"ISC002", # Implicitly concatenated string literals over multiple lines
40+
"PIE790", # Unnecessary `pass` statement
41+
"PERF401", # PERF401 Use a list comprehension to create a transformed list
42+
"E241", # Multiple spaces after comma
43+
"E265", # Block comment should start with `# `
44+
"E266", # Too many leading `#` before block comment
45+
"E302", # TODO: Expected 2 blank lines, found 1
46+
"E402", # Module level import not at top of file
47+
"E712", # Avoid equality comparisons to `True` or `False`
48+
"E721", # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
49+
"E731", # Do not assign a `lambda` expression, use a `def`
50+
"E741", # Ambiguous variable name
51+
"F403", # `from ... import *` used; unable to detect undefined names
52+
"F405", # may be undefined, or defined from star imports
53+
"F821", # Undefined name
54+
"F841", # Local variable is assigned to but never used
55+
"UP015", # Unnecessary mode argument
56+
"UP031", # TODO: Use format specifiers instead of percent format
5557
]
5658

5759
[lint.per-file-ignores]

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.