@@ -78,8 +78,55 @@ ignore = [
78
78
" D206" , # Docstrings should be indented with spaces; unnecessary when running ruff-format
79
79
" E501" , # Line length too long; unnecessary when running ruff-format
80
80
" W191" , # Indentation contains tabs; unnecessary when running ruff-format
81
- ]
82
81
82
+ # FIX AND REMOVE BELOW CODES:
83
+ " ANN202" , # Missing return type annotation for private function
84
+ " ANN001" , # Missing type annotation for function argument
85
+ " D102" , # Missing docstring in public method
86
+ " SIM117" , # Use a single `with` statement with multiple contexts instead of nested `with` statements
87
+ " PT027" , # Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
88
+ " PT009" , # Use a regular `assert` instead of unittest-style `assertEqual` / `assertIsInstance`
89
+ " PD011" , # Use `.to_numpy()` instead of `.values`
90
+ " D101" , # Missing docstring in public class
91
+ " D401" , # First line of docstring should be in imperative mood
92
+ " FIX002" , # Line contains TODO, consider resolving the issue
93
+ " RET505" , # Unnecessary `else` after `return` statement
94
+ " E721" , # Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
95
+ " UP031" , # Use format specifiers instead of percent format
96
+ " E731" , # Do not assign a `lambda` expression, use a `def`
97
+ " ARG005" , # Unused lambda argument
98
+ " ARG001" , # Unused function argument
99
+ " SIM102" , # Use a single `if` statement instead of nested `if` statements
100
+ " RET504" , # Unnecessary assignment to `result` before `return` statement
101
+ " N802" , # Function name should be lowercase
102
+ " RET506" , # Unnecessary `else` after `raise` statement
103
+ " B904" , # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None`
104
+ " ARG002" , # Unused method argument
105
+ " ERA001" , # Found commented-out code
106
+ " RET503" , # Missing explicit `return` at the end of function able to return non-`None` value
107
+ " F401" , # `module` imported but unused
108
+ " D103" , # Missing docstring in public function
109
+ " F403" , # `from module import *` used; unable to detect undefined names
110
+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed
111
+ " ANN206" , # Missing return type annotation for classmethod
112
+ " ANN102" , # Missing type annotation for `cls` in classmethod
113
+ " D107" , # Missing docstring in `__init__`
114
+ " UP028" , # Replace `yield` over `for` loop with `yield from`
115
+ " B023" , # Function definition does not bind loop variable
116
+ " UP032" , # Use f-string instead of `format` call
117
+ " E741" , # Ambiguous variable name
118
+ " N803" , # Argument name should be lowercase
119
+ " ANN205" , # Missing return type annotation for staticmethod
120
+ " UP029" , # Unnecessary builtin import
121
+ " SIM105" , # Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
122
+ " SIM118" , # Use `key in dict` instead of `key in dict.keys()`
123
+ " F811" , # Redefinition of unused name
124
+ " UP008" , # Use `super()` instead of `super(__class__, self)`
125
+ " D417" , # Missing argument description in the docstring
126
+ " SIM103" , # Return the condition directly
127
+ " D404" , # First word of the docstring should not be "This"
128
+ " NPY002" , # Replace legacy `np.random.uniform` call with `np.random.Generator`
129
+ ]
83
130
84
131
[tool .ruff .lint .per-file-ignores ]
85
132
"__init__.py" = [" F401" ]
0 commit comments