refactor(check_file_length.py): add local pre-commit check for file length

This commit is contained in:
Krrish Dholakia 2024-06-15 09:18:47 -07:00
parent 54cf065048
commit 290bcc09e0
2 changed files with 36 additions and 1 deletions

View file

@ -23,4 +23,11 @@ repos:
entry: python3 -m mypy --ignore-missing-imports
language: system
types: [python]
files: ^litellm/
files: ^litellm/
# - id: check-file-length
# name: Check file length
# entry: python check_file_length.py
# args: ["10000"] # set your desired maximum number of lines
# language: python
# files: litellm/.*\.py
# exclude: ^litellm/tests/