[BE]: Enable more ruff PLW checks. Disable one PLR that is preview. (#114759)

Enables a couple more `PLW` checks and disables one that was added that was still in preview mode `PLR6201`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/114759
Approved by: https://github.com/jansel
This commit is contained in:
Aaron Gokaslan 2023-11-29 20:53:22 +00:00 committed by PyTorch MergeBot
parent 7c1a5012f0
commit acdb278144

View File

@ -89,7 +89,10 @@ select = [
"PLR0133", # constant comparison
"PLR0206", # property with params
"PLR1722", # use sys exit
"PLR6201", # set membership test
"PLW0129", # assert on string literal
"PLW0406", # import self
"PLW0711", # binary op exception
"PLW1509", # preexec_fn not safe with threads
"PLW3301", # nested min max
"PT006", # TODO: enable more PT rules
"PT022",