forked from phoenix/litellm-mirror
(feat) add pre-commit hook to check model_prices_and_context_window.json litellm/model_prices_and_context_window_backup.json
This commit is contained in:
parent
a6836a0996
commit
8b571159fc
3 changed files with 34 additions and 21 deletions
|
@ -10,6 +10,12 @@ repos:
|
|||
exclude: ^litellm/tests/|^litellm/proxy/proxy_cli.py|^litellm/integrations/|^litellm/proxy/tests/
|
||||
additional_dependencies: [flake8-print]
|
||||
files: litellm/.*\.py
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-files-match
|
||||
name: Check if files match
|
||||
entry: python3 ci_cd/check_files_match.py
|
||||
language: system
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: mypy
|
||||
|
@ -17,11 +23,4 @@ repos:
|
|||
entry: python3 -m mypy --ignore-missing-imports
|
||||
language: system
|
||||
types: [python]
|
||||
files: ^litellm/
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: check-files-match
|
||||
name: Check if files match
|
||||
entry: python3 ci_cd/check_files_match.py
|
||||
language: system
|
||||
files: model_prices_and_context_window.json model_prices_and_context_window_backup.json
|
||||
files: ^litellm/
|
Loading…
Add table
Add a link
Reference in a new issue