10000 [BE]: Update ruff linter to 0.11.10 (#153625) · pytorch/pytorch@e88c4db · GitHub
[go: up one dir, main page]

Skip to content

Commit e88c4db

Browse files
Skylion007pytorchmergebot
authored andcommitted
[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: #153625 Approved by: https://github.com/cyyever, https://github.com/atalman
1 parent a952f42 commit e88c4db

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.lintrunner.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,7 +1457,7 @@ init_command = [
14571457
'black==23.12.1',
14581458
'usort==1.0.8.post1',
14591459
'isort==5.13.2',
1460-
'ruff==0.11.8', # sync with RUFF
1460+
'ruff==0.11.10', # sync with RUFF
14611461
]
14621462
is_formatter = true
14631463

@@ -1518,7 +1518,12 @@ command = [
15181518

15191519
[[linter]]
15201520
code = 'RUFF'
1521-
include_patterns = ['**/*.py', '**/*.pyi', 'torch/utils/data/*.ipynb']
1521+
include_patterns = [
1522+
'**/*.py',
1523+
'**/*.pyi',
1524+
'torch/utils/data/*.ipynb',
1525+
'pyproject.toml',
1526+
]
15221527
exclude_patterns = [
15231528
'caffe2/**',
15241529
'functorch/docs/**',
@@ -1543,7 +1548,7 @@ init_command = [
15431548
'python3',
15441549
'tools/linter/adapters/pip_init.py',
15451550
'--dry-run={{DRYRUN}}',
1546-
'ruff==0.11.8', # sync with PYFMT
1551+
'ruff==0.11.10', # sync with PYFMT
15471552
]
15481553
is_formatter = true
15491554

0 commit comments

Comments
 (0)
0