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