@@ -78,6 +78,61 @@ 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
+ # FIX AND REMOVE BELOW CODES
83
+ " ANN001" , # Missing type annotation for function argument
84
+ " ANN102" , # Missing type annotation for `cls` in classmethod
85
+ " ANN202" , # Missing return type annotation for private function
86
+ " ANN401" , # Dynamically typed expressions (typing.Any) are disallowed
87
+ " ARG001" , # Unused function argument
88
+ " ARG002" , # Unused method argument
89
+ " ARG005" , # Unused lambda argument
90
+ " B007" , # Loop control variable not used within loop body
91
+ " B008" , # Do not perform function call in argument defaults
92
+ " B020" , # Loop control variable overrides iterable it iterates
93
+ " B028" , # No explicit `stacklevel` keyword argument for `warnings.warn`
94
+ " B904" , # Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None`
95
+ " D101" , # Missing docstring in public class
96
+ " D102" , # Missing docstring in public method
97
+ " D103" , # Missing docstring in public function
98
+ " D106" , # Missing docstring in public nested class
99
+ " D107" , # Missing docstring in `__init__`
100
+ " D210" , # No whitespaces allowed surrounding docstring text
101
+ " D401" , # First line of docstring should be in imperative mood
102
+ " D404" , # First word of the docstring should not be "This"
103
+ " E721" , # Use `is` or `isinstance()` for type comparisons
104
+ " E722" , # Do not use bare `except`
105
+ " E731" , # Do not assign a `lambda` expression, use a `def`
106
+ " E741" , # Ambiguous variable name
107
+ " ERA001" , # Found commented-out code
108
+ " F403" , # `from module import *` used; unable to detect undefined names
109
+ " F841" , # Local variable is assigned to but never used
110
+ " FIX002" , # Line contains TODO, consider resolving the issue
111
+ " N801" , # Class name should use CapWords convention
112
+ " N802" , # Function name should be lowercase
113
+ " N811" , # Constant imported as non-constant
114
+ " NPY002" , # Replace legacy `np.random` call with `np.random.Generator`
115
+ " PD004" , # `.notna` is preferred to `.notnull`
116
+ " PD010" , # `.pivot_table` is preferred to `.pivot` or `.unstack`
117
+ " PD011" , # Use `.to_numpy()` instead of `.values`
118
+ " PT009" , # Use a regular `assert` instead of unittest-style assert
119
+ " PT018" , # Assertion should be broken down into multiple parts
120
+ " PT027" , # Use `pytest.raises` instead of unittest-style `assertRaises` or `assertRaisesRegex`
121
+ " RET503" , # Missing explicit `return` at the end of function able to return non-`None` value
122
+ " RET504" , # Unnecessary assignment to `result` before `return` statement
123
+ " RET505" , # Unnecessary `elif` or `else` after `return` statement
124
+ " RET506" , # Unnecessary `else` after `raise` statement
125
+ " SIM101" , # Multiple `isinstance` calls, merge into a single call
126
+ " SIM102" , # Use a single `if` statement instead of nested `if` statements
127
+ " SIM103" , # Return the condition directly
128
+ " SIM109" , # Use `in` for multiple equality comparisons
129
+ " SIM110" , # Use `any(...)` instead of `for` loop for early return
130
+ " SIM117" , # Use a single `with` statement with multiple contexts instead of nested `with` statements
131
+ " SIM118" , # Use `key in dict` instead of `key in dict.keys()`
132
+ " SIM401" , # Use `self.get(key, None)` instead of an `if` block
133
+ " UP008" , # Use `super()` instead of `super(__class__, self)`
134
+ " UP028" , # Replace `yield` over `for` loop with `yield from`
135
+ " UP031" , # Use format specifiers instead of percent format
81
136
]
82
137
83
138
[tool .ruff .lint .per-file-ignores ]
0 commit comments