From 62f28de8ea5a2686deccda506559128a7ed0b953 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:37:35 +0200 Subject: [PATCH] Update ruff settings Disable deprecated/problematic rules. --- pyproject.toml | 51 +++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1c5f6c103a..ff47f1d38c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -109,29 +109,6 @@ filterwarnings = ["error"] line-length = 88 [tool.ruff.lint] -ignore = [ - "ANN101", - "B904", - "PLW2901", - "RET505", - "SIM105", - "SIM115", - # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules - "W191", - "E111", - "E114", - "E117", - "D206", - "D300", - "Q000", - "Q001", - "Q002", - "Q003", - "COM812", - "COM819", - "ISC001", - "ISC002", -] select = [ "A", "ANN", @@ -157,6 +134,34 @@ select = [ "W", "YTT", ] +ignore = [ + "ANN101", + "B904", + "PLW2901", + "PT004", # deprecated + "PT005", # deprecated + "RET505", + "S404", + "SIM105", + "SIM115", + "UP027", # deprecated + "UP038", # https://github.com/astral-sh/ruff/issues/7871 + # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules + "W191", + "E111", + "E114", + "E117", + "D206", + "D300", + "Q000", + "Q001", + "Q002", + "Q003", + "COM812", + "COM819", + "ISC001", + "ISC002", +] [tool.ruff.lint.mccabe] max-complexity = 45