Enable RUF021 (#135832)

This commit is contained in:
Joost Lekkerkerker
2025-01-17 10:20:45 +01:00
committed by GitHub
parent 85b4be2f16
commit b4f4b06f29
52 changed files with 166 additions and 218 deletions

View File

@@ -70,8 +70,10 @@ def run():
# If we want to only add references to own integrations
# but not include entity integrations
if (
args.limit_reference
and (key_integration != key_to_reference_integration and not is_common)
(
args.limit_reference
and (key_integration != key_to_reference_integration and not is_common)
)
# Do not create self-references in entity integrations
or key_integration in Platform.__members__.values()
):