From e88c4db302fcddd832daa0a2ddf3b47ef1648c5d Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Sat, 17 May 2025 00:39:47 +0000 Subject: [PATCH] [BE]: Update ruff linter to 0.11.10 (#153625) Fixes a bug with #153543 where I forgot to add pyproject.toml to the list of files RUF can scan and also updates it to the latest version (which is just minor bugfixes). Pull Request resolved: https://github.com/pytorch/pytorch/pull/153625 Approved by: https://github.com/cyyever, https://github.com/atalman --- .lintrunner.toml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.lintrunner.toml b/.lintrunner.toml index 12c3c9c45811..9694e0bf94a3 100644 --- a/.lintrunner.toml +++ b/.lintrunner.toml @@ -1457,7 +1457,7 @@ init_command = [ 'black==23.12.1', 'usort==1.0.8.post1', 'isort==5.13.2', - 'ruff==0.11.8', # sync with RUFF + 'ruff==0.11.10', # sync with RUFF ] is_formatter = true @@ -1518,7 +1518,12 @@ command = [ [[linter]] code = 'RUFF' -include_patterns = ['**/*.py', '**/*.pyi', 'torch/utils/data/*.ipynb'] +include_patterns = [ + '**/*.py', + '**/*.pyi', + 'torch/utils/data/*.ipynb', + 'pyproject.toml', +] exclude_patterns = [ 'caffe2/**', 'functorch/docs/**', @@ -1543,7 +1548,7 @@ init_command = [ 'python3', 'tools/linter/adapters/pip_init.py', '--dry-run={{DRYRUN}}', - 'ruff==0.11.8', # sync with PYFMT + 'ruff==0.11.10', # sync with PYFMT ] is_formatter = true