mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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
This commit is contained in:
committed by
PyTorch MergeBot
parent
e595136187
commit
c79dfdc655
@ -275,7 +275,7 @@ class TestFloat8Dtype(TestCase):
|
||||
IMO simpler to special case e8m0 here.
|
||||
"""
|
||||
|
||||
for biased_exponent in range(0, 256):
|
||||
for biased_exponent in range(256):
|
||||
# iterate through all the possible options of guard, round, sticky bits
|
||||
# for the current exponent
|
||||
for grs in range(8):
|
||||
|
Reference in New Issue
Block a user