@@ -32,7 +32,7 @@ exclude = ["tests"] # tests.*
3232namespaces = false
3333
3434[tool .ruff ]
35- select = [
35+ lint. select = [
3636 " B002" , # Python does not support the unary prefix increment
3737 " B007" , # Loop control variable {name} not used within loop body
3838 " B014" , # Exception handler with duplicate exception
@@ -52,7 +52,6 @@ select = [
5252 " N804" , # First argument of a class method should be named cls
5353 " N805" , # First argument of a method should be named self
5454 " N815" , # Variable {name} in class scope should not be mixedCase
55- " PGH001" , # No builtin eval() allowed
5655 " PGH004" , # Use specific rule codes when using noqa
5756 " PLC0414" , # Useless import alias. Import alias does not rename original package.
5857 " PLC" , # pylint
@@ -73,7 +72,6 @@ select = [
7372 " S317" , # suspicious-xml-sax-usage
7473 " S318" , # suspicious-xml-mini-dom-usage
7574 " S319" , # suspicious-xml-pull-dom-usage
76- " S320" , # suspicious-xmle-tree-usage
7775 " S601" , # paramiko-call
7876 " S602" , # subprocess-popen-with-shell-equals-true
7977 " S604" , # call-with-shell-equals-true
@@ -91,13 +89,13 @@ select = [
9189 " T20" , # flake8-print
9290 " TID251" , # Banned imports
9391 " TRY004" , # Prefer TypeError exception for invalid type
94- " TRY200 " , # Use raise from to specify exception cause
95- " TRY302 " , # Remove exception handler; error is immediately re-raised
92+ " S307 " , # Use raise from to specify exception cause
93+ " TRY203 " , # Remove exception handler; error is immediately re-raised
9694 " UP" , # pyupgrade
9795 " W" , # pycodestyle
9896]
9997
100- ignore = [
98+ lint. ignore = [
10199 " D202" , # No blank lines allowed after function docstring
102100 " D203" , # 1 blank line required before class docstring
103101 " D213" , # Multi-line docstring summary should start at the second line
@@ -121,10 +119,10 @@ ignore = [
121119
122120]
123121
124- [tool .ruff .isort ]
122+ [tool .ruff .lint . isort ]
125123force-sort-within-sections = true
126124combine-as-imports = true
127125split-on-trailing-comma = false
128126
129- [tool .ruff .mccabe ]
127+ [tool .ruff .lint . mccabe ]
130128max-complexity = 25
0 commit comments