mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
[BE]: Update ruff to 0.285 (#107519)
This updates ruff to 0.285 which is faster, better, and have fixes a bunch of false negatives with regards to fstrings. I also enabled RUF017 which looks for accidental quadratic list summation. Luckily, seems like there are no instances of it in our codebase, so enabling it so that it stays like that. :) Pull Request resolved: https://github.com/pytorch/pytorch/pull/107519 Approved by: https://github.com/ezyang
This commit is contained in:
committed by
PyTorch MergeBot
parent
02c2b750c5
commit
88ab3e4322
@ -74,6 +74,7 @@ select = [
|
||||
"PIE807",
|
||||
"PIE810",
|
||||
"PLE",
|
||||
"RUF017",
|
||||
"TRY302",
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user