Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

build(makefile): add mypy linting to makefile

Krrish Dholakia6b9ca0015a3e
diff --git a/Makefile b/Makefile
index 6bd3cb57d49..65553261689 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# LiteLLM Makefile
# 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
help:
@@ -10,6 +10,13 @@ help:
@echo " make test-unit - Run unit 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
test:
poetry run pytest tests/