From 5e72cf97b9a50fdb6fd88aa57316bb6ce55fab30 Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Tue, 8 Oct 2024 12:11:26 -0700 Subject: [PATCH] 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 --- .lintrunner.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/.lintrunner.toml b/.lintrunner.toml index 7aa15d65638..42373c9c602 100644 --- a/.lintrunner.toml +++ b/.lintrunner.toml @@ -180,6 +180,7 @@ exclude_patterns = [ '**/*.bat', '**/*.jpg', '**/*.jar', + '**/*.gif', # File contains @generated 'extension/llm/custom_ops/spinquant/fast_hadamard_transform_special.h', 'extension/llm/custom_ops/spinquant/test/fast_hadamard_transform_special_unstrided_cpu.h',