[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
diff --git a/test/test_mps.py b/test/test_mps.py
index b2f7d64..e4cdd1d 100644
--- a/test/test_mps.py
+++ b/test/test_mps.py
@@ -9436,8 +9436,8 @@
output = F.grid_sample(input, grid, mode=mode, padding_mode=padding_mode,
align_corners=align_corners)
self.assertEqual(output, groundtruth, atol=1e-5, rtol=0,
- msg="groundtruth comparison failed for mode={}, "
- "padding_mode={}".format(mode, padding_mode))
+ msg=f"groundtruth comparison failed for mode={mode}, "
+ f"padding_mode={padding_mode}")
class TestAdvancedIndexing(TestCaseMPS):
supported_dtypes = [torch.float32, torch.float16, torch.int64, torch.int32, torch.int16, torch.uint8]