build(makefile): add mypy linting to makefile

This commit is contained in:
Krrish Dholakia 2025-03-13 19:55:22 -07:00
parent 38bf86d49f
commit 6b9ca0015a

View file

@ -1,7 +1,7 @@
# LiteLLM Makefile # LiteLLM Makefile
# Simple Makefile for running tests and basic development tasks # Simple Makefile for running tests and basic development tasks
.PHONY: help test test-unit test-integration .PHONY: help test test-unit test-integration lint format
# Default target # Default target
help: help:
@ -10,6 +10,13 @@ help:
@echo " make test-unit - Run unit tests" @echo " make test-unit - Run unit tests"
@echo " make test-integration - Run integration tests" @echo " make test-integration - Run integration tests"
install-dev:
poetry install --with dev
lint: install-dev
poetry run pip install types-requests types-setuptools types-redis types-PyYAML
cd litellm && poetry run mypy . --ignore-missing-imports
# Testing # Testing
test: test:
poetry run pytest tests/ poetry run pytest tests/