You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+48-33Lines changed: 48 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -82,50 +82,65 @@ ignore = [
82
82
"W191", # Indentation contains tabs; unnecessary when running ruff-format
83
83
84
84
# REMOVE AFTER FIXING
85
+
# ANN rules (flake8-annotations)
85
86
"ANN001", # Missing type annotation for function argument `args`
87
+
"ANN102", # Missing type annotation for `cls` in classmethod
86
88
"ANN202", # Missing Missing return type annotation for private function
87
-
"D103", # Missing docstring in public function
89
+
"ANN205", # Missing return type annotation for staticmethod
90
+
"ANN206", # Missing return type annotation for classmethod
91
+
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `domain`
92
+
# ARG rules (flake8-unused-arguments)
93
+
"ARG001", # Unused function argument
94
+
"ARG002", # Unused method argument
95
+
# B rules (flake8-bugbear)
96
+
"B005", # Using `.strip()` with multi-character strings is misleading
97
+
"B007", # Loop control variable not used within loop body
98
+
"B008", # Do not perform function call in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
99
+
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
100
+
# D rules (pydocstyle)
88
101
"D101", # Missing docstring in public class
89
-
"PT009", # Use a regular `assert` instead of unittest-style `assertEqual`
90
102
"D102", # Missing docstring in public method
91
-
"UP031", # Use format specifiers instead of percent format
92
-
"D401", # First line of docstring should be in imperative mood: "Loads the vocabulary from the specified path."
93
-
"RET505", # Unnecessary `elif` after `return` statement
103
+
"D103", # Missing docstring in public function
94
104
"D107", # Missing docstring in `__init__`,
95
-
"PT027", # Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
96
-
"SIM101", # Multiple `isinstance` calls for `maybe_collection`, merge into a single call
97
-
"FIX002", # Line contains TODO, consider resolving the issue
98
-
"SIM103", # Return the condition directly
99
-
"UP008", # Use `super()` instead of `super(__class__, self)`
100
-
"N802", # Function name should be lowercase,
101
-
"B008", # Do not perform function call in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
105
+
"D401", # First line of docstring should be in imperative mood: "Loads the vocabulary from the specified path."
106
+
"D404", # First word of the docstring should not be "This"
107
+
"D417", # Missing argument descriptions in the docstring
108
+
# E rules (pycodestyle)
102
109
"E731", # Do not assign a `lambda` expression, use a `def`
110
+
"E741", # Ambiguous variable name
111
+
# ERA rules (flake8-eradicate)
103
112
"ERA001", # Found commented-out code
104
-
"B005", # Using `.strip()` with multi-character strings is misleading
105
-
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
106
-
"B904", # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
107
-
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `domain`
108
-
"D417", # Missing argument descriptions in the docstring
113
+
# F rules (Pyflakes)
114
+
"F821", # Undefined name
115
+
# FIX rules (flake8-fixme)
116
+
"FIX002", # Line contains TODO, consider resolving the issue
117
+
# N rules (pep8-naming)
118
+
"N802", # Function name should be lowercase,
119
+
# NPY rules (numpy-specific rules)
109
120
"NPY002", # Replace legacy
110
-
"ARG001", # Unused function argument
111
-
"D404", # First word of the docstring should not be "This"
112
-
"SIM102", # Use a single `if` statement instead of nested `if` statements
113
-
"UP028", # Replace `yield` over `for` loop with `yield from`
114
-
"RET504", # Unnecessary assignment to variable before `return` statement
121
+
# PD rules (pandas-vet)
122
+
"PD002", # `inplace=True` should be avoided; it has inconsistent behavior
123
+
"PD003", # `.isna` is preferred to `.isnull`; functionality is equivalent
115
124
"PD011", # Use `.to_numpy()` instead of `.values`
116
-
"ANN206", # Missing return type annotation for classmethod
117
-
"ANN102", # Missing type annotation for `cls` in classmethod
118
125
"PD015", # Use `.merge` method instead of `pd.merge` function
119
-
"PD003", # `.isna` is preferred to `.isnull`; functionality is equivalent
120
-
"ANN205", # Missing return type annotation for staticmethod
121
-
"B007", # Loop control variable not used within loop body
122
-
"SIM211", # Use `not ...` instead of `False if ... else True`
123
-
"ARG002", # Unused method argument
124
-
"PD002", # `inplace=True` should be avoided; it has inconsistent behavior
125
-
"F821", # Undefined name
126
-
"SIM105", # Use `contextlib.suppress(...)` instead of `try`-`except`-`pass`
126
+
# PT rules (flake8-pytest-style)
127
+
"PT009", # Use a regular `assert` instead of unittest-style `assertEqual`
127
128
"PT018", # Assertion should be broken down into multiple parts
128
-
"E741", # Ambiguous variable name
129
+
"PT027", # Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
130
+
# RET rules (flake8-return)
131
+
"RET504", # Unnecessary assignment to variable before `return` statement
132
+
"RET505", # Unnecessary `elif` after `return` statement
133
+
# SIM rules (flake8-simplify)
134
+
"SIM101", # Multiple `isinstance` calls for `maybe_collection`, merge into a single call
135
+
"SIM102", # Use a single `if` statement instead of nested `if` statements
136
+
"SIM103", # Return the condition directly
137
+
"SIM105", # Use `contextlib.suppress(...)` instead of `try`-`except`-`pass`
138
+
"SIM117", # Use a single `with` statement with multiple contexts instead of nested `with` statements
139
+
"SIM211", # Use `not ...` instead of `False if ... else True`
140
+
# UP rules (pyupgrade)
141
+
"UP008", # Use `super()` instead of `super(__class__, self)`
142
+
"UP028", # Replace `yield` over `for` loop with `yield from`
143
+
"UP031", # Use format specifiers instead of percent format
0 commit comments