ci(pre-commit-config.yaml): adding mypy linting as a pre-commit hook

This commit is contained in:
Krrish Dholakia 2023-12-06 22:57:14 -08:00
parent bd8d59e693
commit 8cc0e8e5c5
2 changed files with 11 additions and 2 deletions

View file

@ -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/

View file

@ -2,4 +2,4 @@ set_verbose = False
def print_verbose(print_statement):
if set_verbose:
print(print_statement)
print(print_statement) # noqa