-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (22 loc) · 714 Bytes
/
Makefile
File metadata and controls
33 lines (22 loc) · 714 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.PHONY: install dev lint format test test-cov typecheck clean bash docker-build docker-run
install:
uv sync --extra gds
dev: install
lint:
uv run ruff check src/ tests/
format:
uv run ruff format src/ tests/
test:
uv run pytest tests/
test-cov:
uv run pytest tests/ --cov=rabbitllm --cov-report=term-missing
typecheck:
uv run mypy src/rabbitllm/ --ignore-missing-imports
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .ruff_cache .mypy_cache htmlcov/ .coverage .coverage.*
docker-build:
docker build -t rabbitllm .
docker-run:
docker run --gpus all --rm -it rabbitllm python scripts/inference_example.py --help
bash:
docker run --gpus all --rm -it -v $(PWD):/app -w /app python:3.12 bash