-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (30 loc) · 769 Bytes
/
Makefile
File metadata and controls
47 lines (30 loc) · 769 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
45
46
47
.PHONY: all lint format typecheck test test-cov build docs \
docker-build docker-up docker-down clean
all: lint typecheck test
# ---------- Code quality ----------
lint:
uv run ruff check .
format:
uv run ruff format .
typecheck:
uv run pyright
# ---------- Testing ----------
test:
uv run pytest -v --tb=short
test-cov:
uv run pytest --cov=memfun --cov-report=html
# ---------- Build ----------
build:
uv build
docs:
mkdocs build
# ---------- Docker ----------
docker-build:
docker build -f docker/Dockerfile -t memfun .
docker-up:
docker compose -f docker/docker-compose.yml up -d
docker-down:
docker compose -f docker/docker-compose.yml down
# ---------- Cleanup ----------
clean:
rm -rf dist .pytest_cache .ruff_cache __pycache__