pytorch/test/nn
Yuanyuan Chen fdab48a7c1 Enable all PIE rules on ruff (#165814)
This PR enables all PIE rules on ruff, there are already some enabled rules from this family, the new added rules are
```
PIE796  Enum contains duplicate value: {value}
PIE808  Unnecessary start argument in range
```

Pull Request resolved: https://github.com/pytorch/pytorch/pull/165814
Approved by: https://github.com/ezyang
2025-10-18 07:36:18 +00:00
..
test_convolution.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
test_dropout.py
test_embedding.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
test_init.py Fix unused Python variables in test/nn (#143396) 2024-12-18 03:30:54 +00:00
test_lazy_modules.py Typo fixes for "overridden" in comments and function names (#155944) 2025-06-14 03:37:38 +00:00
test_load_state_dict.py Enable ruff rule E721 (#165162) 2025-10-13 01:48:55 +00:00
test_module_hooks.py Add warning for module full backward hook when no input requires gradient (#155339) 2025-06-10 04:42:06 +00:00
test_multihead_attention.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
test_packed_sequence.py [4/N] Apply py39 ruff and pyupgrade fixes (#143257) 2025-01-04 10:47:51 +00:00
test_parametrization.py fix: raise value error on init ParametrizationList if original.device != new.device (#162717) 2025-09-11 23:07:58 +00:00
test_pooling.py Enable all PIE rules on ruff (#165814) 2025-10-18 07:36:18 +00:00
test_pruning.py Fix unused Python variables in test/nn (#143396) 2024-12-18 03:30:54 +00:00