-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 745 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (31 loc) · 745 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
34
35
36
37
38
39
40
41
42
43
44
PY ?= python3.12
VENV := .venv
BIN := $(VENV)/bin
.PHONY: help venv install init up down restart logs test lint clean reset
help:
@echo "Targets: venv install init up down restart logs test lint clean reset"
venv:
$(PY) -m venv $(VENV)
$(BIN)/python -m pip install --upgrade pip
install: venv
$(BIN)/pip install -e ".[dev]"
$(MAKE) init
init:
$(BIN)/hybrid-search init
up:
$(BIN)/hybrid-search up --watch
down:
$(BIN)/hybrid-search down
restart:
$(BIN)/hybrid-search restart
logs:
docker compose logs -f qdrant
test:
$(BIN)/pytest -q
lint:
$(BIN)/ruff check src tests eval
clean:
rm -rf $(VENV) .pytest_cache **/__pycache__ build dist *.egg-info
reset:
$(BIN)/lore down || true
rm -rf $$HOME/.lore $$HOME/.better-mem