Revert "Enable all PIE rules on ruff (#165814)"

This reverts commit c79dfdc6550e872783aa5cb5fc9e86589bf18872.

Reverted https://github.com/pytorch/pytorch/pull/165814 on behalf of https://github.com/cyyever due to Need to cover more files ([comment](https://github.com/pytorch/pytorch/pull/165814#issuecomment-3417931863))
This commit is contained in:
PyTorch MergeBot
2025-10-18 07:21:08 +00:00
parent c79dfdc655
commit 24520b8386
91 changed files with 200 additions and 195 deletions

View File

@ -1559,7 +1559,7 @@ class TestOldViewOps(TestCase):
self.compare_with_numpy(torch_fn, np_fn, x, device=None, dtype=None)
def _test_atleast_dim(self, torch_fn, np_fn, device, dtype):
for ndims in range(5):
for ndims in range(0, 5):
shape = _rand_shape(ndims, min_size=5, max_size=10)
for _ in range(ndims + 1):
for with_extremal in [False, True]: