Skip to content

Commit 702c7f0

Browse files
peterbell10pytorchmergebot
authored andcommitted
Exclude mobile TorchScript models from linter checks
Pull Request resolved: #75906 Approved by: https://github.com/suo
1 parent b0081e7 commit 702c7f0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.lintrunner.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ exclude_patterns=[
269269
'third_party/**',
270270
'**/*.expect',
271271
'**/*.ipynb',
272+
'**/*.ptl',
272273
'tools/clang_format_hash/**',
273274
]
274275
command = [

tools/linter/adapters/grep_linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def main() -> None:
160160
)
161161

162162
try:
163-
proc = run_command(["grep", "-nPH", args.pattern, *args.filenames])
163+
proc = run_command(["grep", "-nPHI", args.pattern, *args.filenames])
164164
except Exception as err:
165165
err_msg = LintMessage(
166166
path=None,

0 commit comments

Comments
 (0)