chore: apply ruff's pyupgrade linter rules to modernize Python code with targeted version (#2419)
This commit is contained in:
parent
589099a005
commit
063191889d
246 changed files with 912 additions and 937 deletions
|
|
@ -14,10 +14,13 @@ select = [
|
|||
"F", # pyflakes rules
|
||||
"I001", # unsorted-imports
|
||||
"I002", # missing-required-import
|
||||
"UP", # pyupgrade rules
|
||||
]
|
||||
ignore = [
|
||||
"F403", # undefined-local-with-import-star
|
||||
"F405", # undefined-local-with-import-star-usage
|
||||
"F821", # undefined-name
|
||||
"F841", # unused-variable
|
||||
"UP007", # non-pep604-annotation
|
||||
"UP032", # f-string
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue