[BE] Format .ci/ / .github/ / benchmarks/ / functorch/ / tools/ / torchgen/ with ruff format (#132577)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/132577
Approved by: https://github.com/malfet
This commit is contained in:
Xuehai Pan
2024-10-11 22:07:20 +08:00
committed by PyTorch MergeBot
parent 04adb74d08
commit 267f82b860
64 changed files with 210 additions and 233 deletions

View File

@ -474,7 +474,8 @@ class TestCalculateShards(unittest.TestCase):
else:
# x.time is not None because of the above check
self.assertAlmostEqual(
random_times[test], sum(x.time for x in sharded_tests) # type: ignore[misc]
random_times[test],
sum(x.time for x in sharded_tests), # type: ignore[misc]
)
self.assertListEqual(
list(range(sharded_tests[0].num_shards)),