Skip to content

Commit

Permalink
Exclude mobile TorchScript models from linter checks
Browse files Browse the repository at this point in the history
Pull Request resolved: pytorch#75906

Approved by: https://github.com/suo
  • Loading branch information
peterbell10 authored and pytorchmergebot committed Apr 16, 2022
1 parent b0081e7 commit 702c7f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ exclude_patterns=[
'third_party/**',
'**/*.expect',
'**/*.ipynb',
'**/*.ptl',
'tools/clang_format_hash/**',
]
command = [
Expand Down
2 changes: 1 addition & 1 deletion tools/linter/adapters/grep_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 702c7f0

Please sign in to comment.