From 27ffe50ff052704c647a6a2583acd31e7ab4c9cb Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 4 Jan 2024 20:40:34 +0100 Subject: [PATCH] Put back `[lint]` But now have to duplicate `extend-exclude` in `[lint]` and `[format]` sections. --- ruff.toml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/ruff.toml b/ruff.toml index 5474871e461..791cfdc0a5a 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,3 +1,4 @@ +[lint] ignore = [ # https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules "W191", @@ -16,20 +17,24 @@ ignore = [ "ISC002", ] extend-select = [ - "UP", # pyupgrade + "UP", # pyupgrade ] extend-ignore = [ - "UP015", # redundant-open-modes, explicit is prefered - "UP030", # temporarily disabled - "UP031", # temporarily disabled - "UP032", # temporarily disabled - "UP036", # temporarily disabled + "UP015", # redundant-open-modes, explicit is prefered + "UP030", # temporarily disabled + "UP031", # temporarily disabled + "UP032", # temporarily disabled + "UP036", # temporarily disabled ] extend-exclude = [ - "**/_vendor", - "setuptools/_distutils", + "**/_vendor", + "setuptools/_distutils", ] [format] +extend-exclude = [ + "**/_vendor", + "setuptools/_distutils", +] # https://docs.astral.sh/ruff/settings/#format-quote-style quote-style = "preserve"