mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-03 09:10:47 +00:00
4c82dd9b27
* fix(user_api_key_auth.py): fix else block Fixes https://github.com/BerriAI/litellm/issues/11170 * refactor(ollama/chat): refactor to base config pattern easier to maintain fixes * fix(ollama/chat): support tool call parsing on streaming Closes https://github.com/BerriAI/litellm/issues/11104 * test: update import location * fix: cleanup unused import * fix: fix ruff check error * test: update import * test: update test on ci * ci: cleanup * fix: fix chekc * fix: fix api key check order * test: fix import * ci: fix script * test: fix imports * fix: fix tests
35 lines
906 B
Makefile
35 lines
906 B
Makefile
# LiteLLM Makefile
|
|
# Simple Makefile for running tests and basic development tasks
|
|
|
|
.PHONY: help test test-unit test-integration lint format
|
|
|
|
# Default target
|
|
help:
|
|
@echo "Available commands:"
|
|
@echo " make test - Run all tests"
|
|
@echo " make test-unit - Run unit tests"
|
|
@echo " make test-integration - Run integration tests"
|
|
@echo " make test-unit-helm - Run helm unit tests"
|
|
|
|
install-dev:
|
|
poetry install --with dev
|
|
|
|
install-proxy-dev:
|
|
poetry install --with dev,proxy-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/
|
|
|
|
test-unit:
|
|
poetry run pytest tests/test_litellm/
|
|
|
|
test-integration:
|
|
poetry run pytest tests/ -k "not test_litellm"
|
|
|
|
test-unit-helm:
|
|
helm unittest -f 'tests/*.yaml' deploy/charts/litellm-helm
|