forked from phoenix/litellm-mirror
ci(pre-commit-config.yaml): adding mypy linting as a pre-commit hook
This commit is contained in:
parent
bd8d59e693
commit
8cc0e8e5c5
2 changed files with 11 additions and 2 deletions
|
@ -5,4 +5,13 @@ repos:
|
|||
- id: flake8
|
||||
exclude: ^litellm/tests/|^litellm/proxy/|^litellm/integrations/
|
||||
additional_dependencies: [flake8-print]
|
||||
files: litellm/.*\.py
|
||||
files: litellm/.*\.py
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: mypy
|
||||
name: mypy
|
||||
entry: python3 -m mypy --ignore-missing-imports
|
||||
language: system
|
||||
types: [python]
|
||||
files: ^litellm/
|
||||
exclude: ^litellm/tests/
|
|
@ -2,4 +2,4 @@ set_verbose = False
|
|||
|
||||
def print_verbose(print_statement):
|
||||
if set_verbose:
|
||||
print(print_statement)
|
||||
print(print_statement) # noqa
|
Loading…
Add table
Add a link
Reference in a new issue