@@ -54,7 +54,7 @@ docs = [
5454]
5555dev = [
5656 " mypy" ,
57- " ruff>=0.9.3 " ,
57+ " ruff>=0.12.0 " ,
5858 " pytest" ,
5959 " pytest-timeout" ,
6060 " pytest-cov" ,
@@ -135,24 +135,31 @@ select = [
135135 " E" , # pycodestyle
136136 " W" , # pycodestyle
137137 " PL" , # pylint
138+ " UP" , # pyupgrade
139+ # "F401", # remove unused import
140+ " I001" , # sort imports
138141 # "NPY201", # reactivate when np>2.0 is used
139142]
140143ignore = [
144+ " E402" , # Module level import not at top of file
141145 " E501" , # Line too long ({width} > {limit} characters)
142146 " E701" , # Multiple statements on one line (colon)
143147 " E731" , # Do not assign a lambda expression, use a def
144- " E402" , # Module level import not at top of file
148+ " PLC0415" , # `import` should be at the top-level of a file
149+ " PLR0904" , # too-many-public-methods
145150 " PLR0911" , # Too many return statements
146151 " PLR0912" , # Too many branches
147152 " PLR0913" , # Too many arguments in function definition
148153 " PLR0915" , # Too many statements
149- " PLR2004" , # Magic value used instead of constant
150- " PLW0603" , # Using the global statement
151- " PLW2901" , # redefined-loop-name
154+ " PLR0917" , # too-many-positional-arguments
152155 " PLR1714" , # consider-using-in
156+ " PLR2004" , # Magic value used instead of constant
153157 " PLR5501" , # else-if-used
158+ " PLW0603" , # Using the global statement
159+ " PLW2901" , # redefined-loop-name,
154160]
155161fixable = [" ALL" ]
162+ isort.split-on-trailing-comma = false
156163
157164[tool .ruff .format ]
158165quote-style = " double"
0 commit comments