@@ -78,8 +78,56 @@ ignore = [
7878 " D206" , # Docstrings should be indented with spaces; unnecessary when running ruff-format
7979 " E501" , # Line length too long; unnecessary when running ruff-format
8080 " W191" , # Indentation contains tabs; unnecessary when running ruff-format
81- ]
8281
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+ " 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`
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__`
98+ " D401" , # First line of docstring should be in imperative mood
99+ " D404" , # First word of the docstring should not be "This"
100+ " D417" , # Missing argument description in the docstring
101+ " E721" , # Use `is` and `is not` for type comparisons, or `isinstance()` for isinstance checks
102+ " E731" , # Do not assign a `lambda` expression, use a `def`
103+ " E741" , # Ambiguous variable name
104+ " ERA001" , # Found commented-out code
105+ " F401" , # `module` imported but unused
106+ " F403" , # `from module import *` used; unable to detect undefined names
107+ " F405" , # Name may be undefined, or defined from star imports
108+ " F811" , # Redefinition of unused name
109+ " FIX002" , # Line contains TODO, consider resolving the issue
110+ " N802" , # Function name should be lowercase
111+ " N803" , # Argument name should be lowercase
112+ " NPY002" , # Replace legacy `np.random.uniform` call with `np.random.Generator`
113+ " PD011" , # Use `.to_numpy()` instead of `.values`
114+ " PT009" , # Use a regular `assert` instead of unittest-style `assertEqual` / `assertIsInstance`
115+ " PT027" , # Use `pytest.raises` instead of unittest-style `assertRaisesRegex`
116+ " RET503" , # Missing explicit `return` at the end of function able to return non-`None` value
117+ " RET504" , # Unnecessary assignment to `result` before `return` statement
118+ " RET505" , # Unnecessary `else` after `return` statement
119+ " RET506" , # Unnecessary `else` after `raise` statement
120+ " SIM102" , # Use a single `if` statement instead of nested `if` statements
121+ " SIM103" , # Return the condition directly
122+ " SIM105" , # Use `contextlib.suppress(KeyError)` instead of `try`-`except`-`pass`
123+ " SIM117" , # Use a single `with` statement with multiple contexts instead of nested `with` statements
124+ " SIM118" , # Use `key in dict` instead of `key in dict.keys()`
125+ " UP008" , # Use `super()` instead of `super(__class__, self)`
126+ " UP028" , # Replace `yield` over `for` loop with `yield from`
127+ " UP029" , # Unnecessary builtin import
128+ " UP031" , # Use format specifiers instead of percent format
129+ " UP032" , # Use f-string instead of `format` call
130+ ]
83131
84132[tool .ruff .lint .per-file-ignores ]
85133"__init__.py" = [" F401" ]
0 commit comments