@@ -105,38 +105,35 @@ line-ending = "lf"
105
105
quote-style = " preserve"
106
106
107
107
[tool .ruff .lint ]
108
- # Enable pycodestyle (`E`), Pyflakes (`F`), and isort (`I`) by default.
109
108
select = [
109
+ # pycodestyle
110
+ " E" ,
110
111
# Pyflakes
111
112
" F" ,
112
- # Pycodestyle
113
- " E" ,
114
- " W" ,
113
+ # pyupgrade
114
+ " UP" ,
115
+ # flake8-bugbear
116
+ " B" ,
117
+ # flake8-simplify
118
+ " SIM" ,
115
119
# isort
116
- " I001" ,
117
- " I002"
120
+ " I" ,
118
121
]
119
- # Skip unused variable rules
120
- ignore = []
121
- extend-ignore = [" D203" , " E203" , " E251" , " E266" , " E401" , " E402" , " E501" , " F401" , " F403" ]
122
+ ignore = [" D203" , " E203" , " E251" , " E266" , " E401" , " E402" , " E501" , " F401" , " F403" ]
122
123
123
124
# Allow unused variables when underscore-prefixed.
124
125
dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
125
126
126
127
# Allow autofix for all enabled rules (when `--fix`) is provided.
127
- fixable = [" A" , " B" , " C" , " D" , " E" , " F" , " G" , " I" , " N" , " Q" , " S" , " T" , " W" , " ANN" , " ARG" , " BLE" , " COM" , " DJ" , " DTZ" , " EM" , " ERA" , " EXE" , " FBT" , " ICN" , " INP" , " ISC" , " NPY" , " PD" , " PGH" , " PIE" , " PL" , " PT" , " PTH" , " PYI" , " RET" , " RSE" , " RUF" , " SIM" , " SLF" , " TCH " , " TID" , " TRY" , " UP" , " YTT" ]
128
+ fixable = [" A" , " B" , " C" , " D" , " E" , " F" , " G" , " I" , " N" , " Q" , " S" , " T" , " W" , " ANN" , " ARG" , " BLE" , " COM" , " DJ" , " DTZ" , " EM" , " ERA" , " EXE" , " FBT" , " ICN" , " INP" , " ISC" , " NPY" , " PD" , " PGH" , " PIE" , " PL" , " PT" , " PTH" , " PYI" , " RET" , " RSE" , " RUF" , " SIM" , " SLF" , " TID" , " TRY" , " UP" , " YTT" ]
128
129
129
130
# unfixable = []
130
131
131
132
[tool .ruff .lint .isort ]
133
+ combine-as-imports = true
132
134
from-first = false
133
135
no-sections = true
134
-
135
- [tool .ruff .lint .empty-lines ]
136
- max-blank-lines-after-class = 1
137
- max-blank-lines-after-function = 1
138
- min-after-class = 2
139
- min-after-function = 2
136
+ order-by-type = true
140
137
141
138
[tool .ruff .lint .flake8-quotes ]
142
139
docstring-quotes = " double"
0 commit comments