mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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:
parent
7c1a5012f0
commit
acdb278144
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user