forked from phoenix/litellm-mirror
refactor(check_file_length.py): add local pre-commit check for file length
This commit is contained in:
parent
54cf065048
commit
290bcc09e0
2 changed files with 36 additions and 1 deletions
|
@ -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/
|
Loading…
Add table
Add a link
Reference in a new issue