Skip to content

Commit 7359ff7

Browse files
Enforce ruff/flake8-simplify rules (SIM)
1 parent 41724fb commit 7359ff7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ extend-select = [
286286
"RET", # flake8-return
287287
"RSE", # flake8-raise
288288
"RUF",
289+
"SIM", # flake8-simplify
289290
"TCH", # flake8-type-checking
290291
"TRY", # tryceratops
291292
"UP", # pyupgrade
@@ -302,6 +303,7 @@ ignore = [
302303
"RET505",
303304
"RET506",
304305
"RUF005",
306+
"SIM108",
305307
"TRY003",
306308
"UP027", # deprecated
307309
"UP038", # https://github.com/astral-sh/ruff/issues/7871
@@ -323,7 +325,7 @@ ignore = [
323325
]
324326

325327
[tool.ruff.lint.extend-per-file-ignores]
326-
"tests/**" = ["ANN001", "ANN201"]
328+
"tests/**" = ["ANN001", "ANN201", "RUF029", "SIM117", "SIM300"]
327329

328330
[tool.mypy]
329331
python_version = "3.11"

0 commit comments

Comments
 (0)