Skip to content

Commit 4d2d463

Browse files
Apply ruff/refurb rules (FURB)
1 parent f34244c commit 4d2d463

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

pyproject.toml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -207,30 +207,33 @@ extend-exclude = [
207207

208208
[tool.ruff.lint]
209209
extend-select = [
210-
"ANN", # flake8-annotations
211-
"B", # flake8-bugbear
212-
"C4", # flake8-comprehensions
213-
"FLY", # flynt
214-
"I", # isort
215-
"ISC", # flake8-implicit-str-concat
216-
"PGH", # pygrep-hooks
217-
"PT", # flake8-pytest-style
218-
"PYI", # flake8-pyi
219-
"RSE", # flake8-raise
220-
"RET", # flake8-return
210+
"ANN", # flake8-annotations
211+
"B", # flake8-bugbear
212+
"C4", # flake8-comprehensions
213+
"FLY", # flynt
214+
"FURB", # refurb
215+
"I", # isort
216+
"ISC", # flake8-implicit-str-concat
217+
"PGH", # pygrep-hooks
218+
"PT", # flake8-pytest-style
219+
"PYI", # flake8-pyi
220+
"RSE", # flake8-raise
221+
"RET", # flake8-return
221222
"RUF",
222-
"TCH", # flake8-type-checking
223-
"TRY", # tryceratops
224-
"UP", # pyupgrade
223+
"TCH", # flake8-type-checking
224+
"TRY", # tryceratops
225+
"UP", # pyupgrade
225226
]
226227
ignore = [
227228
"ANN003",
228229
"ANN101",
229230
"ANN102",
230231
"ANN401",
231-
"PT004", # deprecated
232-
"PT011", # TODO: apply this rule
233-
"PT012", # TODO: apply this rule
232+
"FURB118", # TODO: apply this rule
233+
"FURB140", # TODO: apply this rule
234+
"PT004", # deprecated
235+
"PT011", # TODO: apply this rule
236+
"PT012", # TODO: apply this rule
234237
"PYI013",
235238
"RET505",
236239
"RET506",

0 commit comments

Comments
 (0)