pytorch/tools/linter
Catherine Lee 953e80936e [linter] Grep linter batches long command (#145950)
If the command is too long, the linter fails with
```
Failed due to OSError:
[Errno 7] Argument list too long: 'grep'
```
Fix this by batching the command so it is shorter

Limit of 750k was chosen due to `getconf ARG_MAX` returns ~1M on my mac.  My guess is that most people shouldn't hit this unless they run --all-files and the directory length is long.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/145950
Approved by: https://github.com/wdvr
2025-01-29 21:23:27 +00:00
..
adapters [linter] Grep linter batches long command (#145950) 2025-01-29 21:23:27 +00:00
clang_tidy [BE][Easy] enable postponed annotations in tools (#129375) 2024-06-29 09:23:35 +00:00
__init__.py