[BE][Ez]: Update ruff to 0.12.9 (#160896)

Updates ruff. Fixes false positives and other miscellaneous ruff linting and formatting fixes.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/160896
Approved by: https://github.com/zou3519
This commit is contained in:
Aaron Gokaslan 2025-08-19 19:56:20 +00:00 committed by PyTorch MergeBot
parent 9d9cc9897a
commit ed8bcccf31

View File

@ -1454,7 +1454,7 @@ init_command = [
'--dry-run={{DRYRUN}}',
'usort==1.0.8.post1',
'isort==6.0.1',
'ruff==0.12.2', # sync with RUFF
'ruff==0.12.9', # sync with RUFF
]
is_formatter = true
@ -1589,7 +1589,7 @@ init_command = [
'python3',
'tools/linter/adapters/pip_init.py',
'--dry-run={{DRYRUN}}',
'ruff==0.12.2', # sync with PYFMT
'ruff==0.12.9', # sync with PYFMT
]
is_formatter = true