From 2c6cd4531856ecc9034105a711f87c19efee9f0c Mon Sep 17 00:00:00 2001 From: Chesars Date: Fri, 20 Mar 2026 22:35:25 -0300 Subject: [PATCH] chore: remove check_files_match pre-commit hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The hook kept the backup JSON in sync with the root file — no longer needed now that the backup file has been removed. --- .pre-commit-config.yaml | 6 ------ ci_cd/check_files_match.py | 32 -------------------------------- 2 files changed, 38 deletions(-) delete mode 100644 ci_cd/check_files_match.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9396f323e4..b846bb9b32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,9 +32,3 @@ repos: hooks: - id: poetry-check files: ^(pyproject.toml|litellm-proxy-extras/pyproject.toml)$ -- repo: local - hooks: - - id: check-files-match - name: Check if files match - entry: python3 ci_cd/check_files_match.py - language: system \ No newline at end of file diff --git a/ci_cd/check_files_match.py b/ci_cd/check_files_match.py deleted file mode 100644 index abf7d9df8b..0000000000 --- a/ci_cd/check_files_match.py +++ /dev/null @@ -1,32 +0,0 @@ -import sys -import filecmp -import shutil - - -def main(argv=None): - print( - "Comparing model_prices_and_context_window.json files in root and litellm/ directory... checking if they match." - ) - - file1 = "model_prices_and_context_window.json" - file2 = "litellm/model_prices_and_context_window.json" - - cmp_result = filecmp.cmp(file1, file2, shallow=False) - - if cmp_result: - print(f"Passed! Files {file1} and {file2} match.") - return 0 - else: - print( - f"Failed! Files {file1} and {file2} do not match. Copying content from {file1} to {file2}." - ) - copy_content(file1, file2) - return 1 - - -def copy_content(source, destination): - shutil.copy2(source, destination) - - -if __name__ == "__main__": - sys.exit(main())