From 87fe1dbd8a04cea820a2f9d85378555a7ad386e8 Mon Sep 17 00:00:00 2001 From: correctmost <134317971+correctmost@users.noreply.github.com> Date: Sat, 16 Nov 2024 05:21:10 -0500 Subject: [PATCH] Enable most of the pyupgrade checks in Ruff (#2834) --- pyproject.toml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f8d77cd3..aff881e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -187,7 +187,7 @@ select = [ "RSE", # flake8-raise "SLOT", # flake8-slot "T10", # flake8-debugger - "UP025", # pyupgrade - unicode-kind-prefix + "UP", # pyupgrade "W", # pycodestyle warnings "YTT", # flake8-2020 ] @@ -197,6 +197,14 @@ ignore = [ "E722", # bare-except "F401", # unused-import "PLW2901", # redefined-loop-name + "UP006", # non-pep585-annotation + "UP007", # non-pep604-annotation + "UP027", # unpacked-list-comprehension + "UP028", # yield-in-for-loop + "UP031", # printf-string-formatting + "UP032", # f-string + "UP035", # deprecated-import + "UP037", # quoted-annotation "W191", # tab-indentation ]