From ff83d5e627926af56f62e742300011ef94533ae4 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 10 Nov 2025 04:47:11 -0500 Subject: [PATCH] [FIX] format script ignore some files/directory --- script/maintenance/format_file_to_commit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/maintenance/format_file_to_commit.py b/script/maintenance/format_file_to_commit.py index de818c0..c026b72 100755 --- a/script/maintenance/format_file_to_commit.py +++ b/script/maintenance/format_file_to_commit.py @@ -78,6 +78,13 @@ def get_modified_files(): ) if has_space: file_path = file_path_space + # Remove ignoring + if ( + file_path.endswith(".zip") + or file_path.endswith(".tar.gz") + or file_path.endswith("__pycache__/") + ): + continue file_path = os.path.join(directory, file_path) except Exception as e: