-
Notifications
You must be signed in to change notification settings - Fork 61
/
Makefile
51 lines (41 loc) · 1.1 KB
/
Makefile
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: docs local
local:
uv run honcho start -f Procfile
build:
docker compose build
shell:
docker compose run --rm web bash
graph:
uv run manage.py graph_models \
--rankdir BT \
accounts \
core \
courses \
notifications \
reports \
schools \
students \
teachers \
users \
-o models.png
# For the next time I think about making this faster:
# -n auto --dist loadfile, 8 CPUs, 445 tests, 1m15s
# -n 4 --dist loadfile, 4 CPUs, 445 tests, 43s
# -n 2 --dist loadfile, 4 CPUs, 445 tests, 39s
# no parallelism, 445 tests, 41s
coverage:
uv run pytest --cov=homeschool --migrations -n 2 --dist loadfile
test: fcov
# fcof == "fast coverage" by skipping migrations checking. Save that for CI.
# -n 8 --dist loadfile, 8 CPUs, 515 tests, 20s
# -n 4 --dist loadfile, 4 CPUs, 515 tests, 13s
# -n 2 --dist loadfile, 4 CPUs, 515 tests, 15s
fcov:
@echo "Running fast coverage check"
@uv run pytest --cov=homeschool -n 4 --dist loadfile -q
mypy:
uv run mypy homeschool project manage.py
docs:
uv run make -C docs html
servedocs:
cd docs/_build/html && python3 -m http.server