mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[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
This commit is contained in:
parent
a952f42bdb
commit
e88c4db302
|
|
@ -1457,7 +1457,7 @@ init_command = [
|
||||||
'black==23.12.1',
|
'black==23.12.1',
|
||||||
'usort==1.0.8.post1',
|
'usort==1.0.8.post1',
|
||||||
'isort==5.13.2',
|
'isort==5.13.2',
|
||||||
'ruff==0.11.8', # sync with RUFF
|
'ruff==0.11.10', # sync with RUFF
|
||||||
]
|
]
|
||||||
is_formatter = true
|
is_formatter = true
|
||||||
|
|
||||||
|
|
@ -1518,7 +1518,12 @@ command = [
|
||||||
|
|
||||||
[[linter]]
|
[[linter]]
|
||||||
code = 'RUFF'
|
code = 'RUFF'
|
||||||
include_patterns = ['**/*.py', '**/*.pyi', 'torch/utils/data/*.ipynb']
|
include_patterns = [
|
||||||
|
'**/*.py',
|
||||||
|
'**/*.pyi',
|
||||||
|
'torch/utils/data/*.ipynb',
|
||||||
|
'pyproject.toml',
|
||||||
|
]
|
||||||
exclude_patterns = [
|
exclude_patterns = [
|
||||||
'caffe2/**',
|
'caffe2/**',
|
||||||
'functorch/docs/**',
|
'functorch/docs/**',
|
||||||
|
|
@ -1543,7 +1548,7 @@ init_command = [
|
||||||
'python3',
|
'python3',
|
||||||
'tools/linter/adapters/pip_init.py',
|
'tools/linter/adapters/pip_init.py',
|
||||||
'--dry-run={{DRYRUN}}',
|
'--dry-run={{DRYRUN}}',
|
||||||
'ruff==0.11.8', # sync with PYFMT
|
'ruff==0.11.10', # sync with PYFMT
|
||||||
]
|
]
|
||||||
is_formatter = true
|
is_formatter = true
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user