mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
build(makefile): add mypy linting to makefile
This commit is contained in:
parent
38bf86d49f
commit
6b9ca0015a
1 changed files with 8 additions and 1 deletions
9
Makefile
9
Makefile
|
@ -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/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue