mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 20:26:28 +00:00
ci(pre-commit-config.yaml): adding mypy linting as a pre-commit hook
This commit is contained in:
+10
-1
@@ -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/
|
||||
+1
-1
@@ -2,4 +2,4 @@ set_verbose = False
|
||||
|
||||
def print_verbose(print_statement):
|
||||
if set_verbose:
|
||||
print(print_statement)
|
||||
print(print_statement) # noqa
|
||||
Reference in New Issue
Block a user