From 082a2f710a4d2a1bab7e306449f6ddc7673c746a Mon Sep 17 00:00:00 2001 From: rdimaio Date: Fri, 24 May 2024 10:48:28 +0200 Subject: [PATCH] Testing: Ruff, Ignore UP037 Ruff 0.4.5 changes the logic used to detect UP037, mainly via this PR: https://github.com/astral-sh/ruff/pull/11485. I am seeing some possible false positive due to this, e.g.: > Error: lib/rucio/core/authentication.py:571:27: UP037 Remove quotes from type annotation where it asks to remove quotes from a type that's only imported in a type-checking block. This is a very new Ruff version so it's best to check back at a later point to see if this is a common issue for other repositories too. --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index f710e525eb..f7f2f01ad0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,6 +56,7 @@ ignore = [ "UP030", # Use implicit references for positional format fields "UP031", # Use format specifiers instead of percent format "UP032", # Use f-string instead of `format` call + "UP037", # Remove quotes from type annotation. Seeing possible false positives caused by https://github.com/astral-sh/ruff/pull/11485 "S101", # Pending https://github.com/rucio/rucio/issues/6680 "S105", # Pending https://github.com/rucio/rucio/issues/6696 "S108", # Pending https://github.com/rucio/rucio/issues/6655