-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1.25 KB
/
Makefile
File metadata and controls
51 lines (37 loc) · 1.25 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: dev-install native-dev plugins test test-coverage test-integration lint format check install docs docs-serve
VENV := .venv/bin
CORE_DIR := ../reeln-core
PLUGIN_DIR := ..
PLUGINS := \
reeln-plugin-google \
reeln-plugin-meta \
reeln-plugin-openai \
reeln-plugin-streamn-scoreboard \
reeln-plugin-cloudflare
dev-install:
uv venv --clear
uv pip install -e ".[dev,interactive,docs]"
ln -sf $(CURDIR)/.venv/bin/reeln $(HOME)/.local/bin/reeln
plugins:
uv pip install $(foreach p,$(PLUGINS),-e $(PLUGIN_DIR)/$(p))
native-dev:
cd $(CORE_DIR)/crates/reeln-python && VIRTUAL_ENV=$(CURDIR)/.venv maturin develop --release
test:
$(VENV)/python -m pytest tests/ -n auto --cov=reeln --cov-branch --cov-fail-under=100 -m "not integration" -q
test-coverage:
$(VENV)/python -m pytest tests/ -n auto --cov=reeln --cov-branch --cov-fail-under=100 -m "not integration" --cov-report=html
test-integration:
$(VENV)/python -m pytest tests/integration/ -m integration -v
lint:
$(VENV)/ruff check .
format:
$(VENV)/ruff format .
check: lint
$(VENV)/mypy reeln/
$(MAKE) test
install:
ln -sf $(CURDIR)/.venv/bin/reeln $(HOME)/.local/bin/reeln
docs:
$(VENV)/python -m sphinx docs/ docs/_build/html
docs-serve: docs
$(VENV)/python -m http.server -d docs/_build/html 8000