pytorch/tools/linter
Aaron Orenstein b55b779ad3 Add file size limits to linters and refactor grep_linter (#166202)
- Add 1GB file size limits to grep_linter, newlines_linter, codespell_linter
- Refactor grep_linter
  - process files once instead of per-line
  - Extract allowlist check to separate function
  - Add 512KB limit for computing replacements, 100 match limit per file
  - Detect duplicate arguments
- Fix .lintrunner.toml: RAWCUDADEVICE used --pattern twice
Pull Request resolved: https://github.com/pytorch/pytorch/pull/166202
Approved by: https://github.com/Skylion007
2025-10-25 14:57:19 +00:00
..
adapters Add file size limits to linters and refactor grep_linter (#166202) 2025-10-25 14:57:19 +00:00
clang_tidy [build] Change --cmake{,-only} arguments to envvars to support modern Python build frontend (#156045) 2025-06-17 11:40:24 +00:00
__init__.py
dictionary.txt [ROCm/Windows] Support aotriton for scaled_dot_product_attention on Windows. (#162330) 2025-09-15 16:13:03 +00:00