Exclude mobile TorchScript models from linter checks

Pull Request resolved: https://github.com/pytorch/pytorch/pull/75906

Approved by: https://github.com/suo
This commit is contained in:
Peter Bell 2022-04-15 21:38:52 +01:00 committed by PyTorch MergeBot
parent b0081e7642
commit 702c7f00e2
2 changed files with 2 additions and 1 deletions

View file

@ -269,6 +269,7 @@ exclude_patterns=[
'third_party/**',
'**/*.expect',
'**/*.ipynb',
'**/*.ptl',
'tools/clang_format_hash/**',
]
command = [

View file

@ -160,7 +160,7 @@ def main() -> None:
)
try:
proc = run_command(["grep", "-nPH", args.pattern, *args.filenames])
proc = run_command(["grep", "-nPHI", args.pattern, *args.filenames])
except Exception as err:
err_msg = LintMessage(
path=None,