-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (43 loc) · 1.22 KB
/
Copy pathMakefile
File metadata and controls
53 lines (43 loc) · 1.22 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
52
53
SHELL := /bin/bash
-include .env
.PHONY: all clean test install run deploy down
all: clean test install run deploy down
install: generate_dot_env
pip install --upgrade pip
pip install uv==0.9.7
uv sync --dev
[ -d .git ] || git init
uv run pre-commit install
deploy: generate_dot_env
docker-compose build
docker-compose up -d
down:
docker-compose down
generate_dot_env:
@if [[ ! -e .env ]]; then \
cp .env.example .env; \
fi
clean:
@find ./src ./tests -name '*.pyc' -exec rm -rf {} \; || true
@find ./src ./tests -name '__pycache__' -exec rm -rf {} \; || true
@find ./src ./tests -name 'Thumbs.db' -exec rm -rf {} \; || true
@find ./src ./tests -name '*~' -exec rm -rf {} \; || true
@find ./src ./tests -name '*.egg' -exec rm -f {} \; || true
@find ./src ./tests -name '*.egg-info' -exec rm -rf {} \; || true
rm -rf build/;
rm -rf dist/;
rm -rf .eggs/;
rm -rf *.egg-info;
rm -f .coverage;
rm -fr htmlcov/;
rm -fr .pytest_cache;
rm -f report.xml;
rm -f cov.xml;
rm -rf .mypy_cache;
rm -rf .ruff_cache;
rm -rf .cache;
update-db:
sqlacodegen $(subst +aiosqlite,,$(SQL_DATABASE_URI)) --generator sqlmodels \
--tables \
user,chat_session,chat_memory \
--outfile ./src/markoun/core/db/models.py \