Enable RUF023 (#135830)

This commit is contained in:
Joost Lekkerkerker
2025-01-17 12:28:27 +01:00
committed by GitHub
parent 23e04ced9c
commit ef8b8fbbaa
24 changed files with 105 additions and 104 deletions

View File

@@ -765,6 +765,7 @@ select = [
"RUF020", # {never_like} | T is equivalent to T
"RUF021", # Parenthesize a and b expressions when chaining and and or together, to make the precedence clear
"RUF022", # Sort __all__
"RUF023", # Sort __slots__
"RUF024", # Do not pass mutable objects as values to dict.fromkeys
"RUF026", # default_factory is a positional-only argument to defaultdict
"RUF030", # print() call in assert statement is likely unintentional