8000 MNT: Document ignored ruff rules · r-devulap/numpy@48793d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 48793d5

Browse files
MNT: Document ignored ruff rules
1 parent 1923b38 commit 48793d5

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

ruff.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ extend-select = [
2828
ignore = [
2929
"F", # TODO: enable Pyflakes rules
3030
"PIE790", # Unnecessary `pass` statement
31-
"E241",
32-
"E251",
33-
"E265",
34-
"E266",
35-
"E302",
36-
"E402",
31+
"E241", # Multiple spaces after comma
32+
"E251", # Unexpected spaces around keyword / parameter equals
33+
"E265", # Block comment should start with `# `
34+
"E266", # Too many leading `#` before block comment
35+
"E302", # TODO: Expected 2 blank lines, found 1
36+
"E402", # Module level import not at top of file
3737
"E501", # TODO: Line too long
38-
"E712",
39-
"E721",
40-
"E731",
41-
"E741",
42-
"UP015", # Unnecessary mode argument
43-
"UP031", # TODO: Use format specifiers instead of percent format
38+
"E712", # Avoid equality comparisons to `True` or `False`
39+
"E721", # TODO: Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance check
40+
"E731", # Do not assign a `lambda` expression, use a `def`
41+
"E741", # Ambiguous variable name
42+
"UP015", # Unnecessary mode argument
43+
"UP031", # TODO: Use format specifiers instead of percent format
4444
]
4545

4646
[lint.per-file-ignores]

0 commit comments

Comments
 (0)
0