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
+53-13Lines changed: 53 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -63,29 +63,69 @@ select = [
63
63
]
64
64
65
65
ignore = [
66
-
"D104", # Missing docstring in public package
67
-
"D100", # Missing docstring in public module
68
-
"D211", # No blank line before class
69
-
"PD901", # Avoid using 'df' for pandas dataframes. Perfectly fine in functions with limited scope
66
+
"D104", # Missing docstring in public package
67
+
"D100", # Missing docstring in public module
68
+
"D211", # No blank line before class
69
+
"PD901", # Avoid using 'df' for pandas dataframes. Perfectly fine in functions with limited scope
70
70
"ANN201", # Missing return type annotation for public function (makes no sense for NoneType return types...)
71
71
"ANN101", # Missing type annotation for `self`
72
72
"ANN204", # Missing return type annotation for special method
73
73
"ANN002", # Missing type annotation for `*args`
74
74
"ANN003", # Missing type annotation for `**kwargs`
75
-
"D105", # Missing docstring in magic method
76
-
"D203", # 1 blank line before after class docstring
77
-
"D204", # 1 blank line required after class docstring
78
-
"D413", # 1 blank line after parameters
75
+
"D105", # Missing docstring in magic method
76
+
"D203", # 1 blank line before after class docstring
77
+
"D204", # 1 blank line required after class docstring
78
+
"D413", # 1 blank line after parameters
79
79
"SIM108", # Simplify if/else to one line; not always clearer
80
-
"D206", # Docstrings should be indented with spaces; unnecessary when running ruff-format
81
-
"E501", # Line length too long; unnecessary when running ruff-format
82
-
"W191", # Indentation contains tabs; unnecessary when running ruff-format
80
+
"D206", # Docstrings should be indented with spaces; unnecessary when running ruff-format
81
+
"E501", # Line length too long; unnecessary when running ruff-format
82
+
"W191", # Indentation contains tabs; unnecessary when running ruff-format
83
83
84
84
# REMOVE AFTER FIXING
85
85
"ANN001", # Missing type annotation for function argument `args`
86
86
"ANN202", # Missing Missing return type annotation for private function
87
-
"D103", # Missing docstring in public function
88
-
"D101", # Missing docstring in public class
87
+
"D103", # Missing docstring in public function
88
+
"D101", # Missing docstring in public class
89
+
"PT009", # Use a regular `assert` instead of unittest-style `assertEqual`
90
+
"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
94
+
"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
102
+
"E731", # Do not assign a `lambda` expression, use a `def`
103
+
"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
109
+
"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
115
+
"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
+
"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`
127
+
"PT018", # Assertion should be broken down into multiple parts
0 commit comments