Skip to content

Commit 5e72cf9

Browse files
cccclaifacebook-github-bot
authored andcommitted
filter gif from lint rules
Summary: when running `lintrunner -a`, it shows ``` (executorch) chenlai@chenlai-mbp executorch % lintrunner -a Warning: Could not find a lintrunner config at: '.lintrunner.private.toml'. Continuing without using configuration file. UFMT success! CLANGFORMAT success! FLAKE8 success! NEWLINE failure CMAKE success! ETCAPITAL success! >>> Lint for examples/models/llama2/Android3_2_1B_bf16.gif: Error (NEWLINE) Decoding failure utf-8 decoding failed due to UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte >>> Lint for examples/models/llama2/Android3_2_3B_SpinQuant.gif: Error (NEWLINE) Decoding failure utf-8 decoding failed due to UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte >>> Lint for examples/models/llama2/llama_via_xnnpack.gif: Error (NEWLINE) Decoding failure utf-8 decoding failed due to UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf7 in position 10: invalid start byte >>> Lint for examples/models/llava/llava_via_xnnpack.gif: Error (NEWLINE) Decoding failure utf-8 decoding failed due to UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 6: invalid continuation byte Successfully applied all patches. ``` Thanks kirklandsign for identifying the root cause! Differential Revision: D64059251
1 parent f0112a2 commit 5e72cf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.lintrunner.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ exclude_patterns = [
180180
'**/*.bat',
181181
'**/*.jpg',
182182
'**/*.jar',
183+
'**/*.gif',
183184
# File contains @generated
184185
'extension/llm/custom_ops/spinquant/fast_hadamard_transform_special.h',
185186
'extension/llm/custom_ops/spinquant/test/fast_hadamard_transform_special_unstrided_cpu.h',

0 commit comments

Comments
 (0)