Split the exclude pattern for CODESPELL linter (#156229)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156229
Approved by: https://github.com/albanD
ghstack dependencies: #156080, #156081
This commit is contained in:
Xuehai Pan
2025-06-18 23:58:50 +08:00
committed by PyTorch MergeBot
parent e3507c3777
commit b4228a94d1

View File

@ -1158,9 +1158,34 @@ exclude_patterns = [
'torch/_inductor/autoheuristic/artifacts/**',
# These files are all grandfathered in, feel free to remove from this list
# as necessary
# NOTE: remove the patterns in the order they are listed
'aten/**',
'aten/src/ATen/native/**',
'aten/src/ATen/native/q*/**',
'aten/src/ATen/native/[a-pA-P]*/**',
'aten/src/ATen/[a-mA-M]*/**',
'test/**',
'test/test_*',
'test/[a-hA-h]*/**',
'test/inductor/**',
'test/dynamo/**',
'test/distributed/**',
'torch/**',
'torch/_*/**',
'torch/_inductor/**',
'torch/_dynamo/**',
'torch/ao/**',
'torch/fx/**',
'torch/distributed/**',
'torch/distributed/tensor/**',
'torch/[p-z]*/**',
'torch/[j-o]*/**',
'torch/utils/**',
'torch/csrc/**',
'torch/csrc/jit/**',
'torch/csrc/jit/[a-o]*/**',
'torch/csrc/[a-i]*/**',
'torch/csrc/distributed/**',
]
init_command = [
'python3',