From 7cb8c46d7ce11787b157db06198458aff6d85867 Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Tue, 8 Oct 2024 13:54:54 -0700 Subject: [PATCH] filter gif from lint rules (#5995) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/5995 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! Reviewed By: kirklandsign Differential Revision: D64059251 fbshipit-source-id: 6960ea7eb8108c622cf33870258bbe3da741e27e (cherry picked from commit fe083e5bc2cc89b978b0663c5a9d9e19b051607a) --- .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',