Skip to content

Commit b9effae

Browse files
committed
Massive refactor of documentation
1 parent b8b13e5 commit b9effae

17 files changed

+975
-829
lines changed

Makefile

+18-6
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,48 @@
11

2-
init:
2+
all: init lock dev fix docs
3+
4+
init: .venv/bin/python3
5+
6+
.venv/bin/python3:
37
[ ! -d ".venv" ] && python3 -m venv .venv || echo ".venv already setup"
48
.venv/bin/python3 -m pip install -qq --upgrade pip uv wheel pre-commit
59
.venv/bin/pre-commit install
610

7-
lock:
11+
lock: requirements%.txt
12+
13+
requirements%.txt: pyproject.toml
814
.venv/bin/python3 -m uv pip compile --generate-hashes --upgrade -o requirements.txt pyproject.toml
915
.venv/bin/python3 -m uv pip compile --extra dev --upgrade -o requirements-dev.txt pyproject.toml
1016

11-
prod:
17+
18+
prod: requirements.txt
1219
.venv/bin/python3 -m uv pip install \
1320
--require-hashes --no-deps \
1421
-r requirements.txt
1522
.venv/bin/python3 -m uv pip install . # <- the app/pkg itself
1623

17-
dev:
24+
25+
dev: requirements-dev.txt
1826
.venv/bin/python3 -m uv pip install \
1927
-r requirements-dev.txt \
2028
--editable . # <- the app/pkg itself
2129

22-
fix:
30+
fix: dev
2331
.venv/bin/ruff format .
2432
.venv/bin/ruff check . --fix
2533
.venv/bin/pre-commit run
2634
.venv/bin/isort .
2735

2836
docs:
29-
.venv/bin/md_toc --in-place github --header-levels 4 README.md
37+
.venv/bin/md_toc --in-place github --header-levels 4 README.md guides/*.md
38+
39+
test: dev
40+
.venv/bin/python3 -m pytest
3041

3142
clean:
3243
rm -rfv .venv
3344
rm -rfv dbt_projects
45+
rm -rfv requirements.txt requirements-dev.txt
3446

3547
quickstart: clean init lock dev
3648

0 commit comments

Comments
 (0)