-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (34 loc) · 1.09 KB
/
Makefile
File metadata and controls
43 lines (34 loc) · 1.09 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
.ONESHELL:
.PHONY: all install test lint clean builddocs servedocs cleandocs
all: install
install:
python -m venv ./venv
venv/bin/python --version
venv/bin/python -m pip install --upgrade pip
venv/bin/pip install poetry==2.3.3
@. venv/bin/activate && \
poetry install --with dev,docs && \
poetry run pre-commit install
test:
poetry run pytest
lint:
poetry run ruff check . --fix --exit-non-zero-on-fix
poetry run ruff format
poetry run mypy .
clean:
@. venv/bin/activate && \
pre-commit uninstall && \
rm -rf venv && \
rm -f poetry.lock
builddocs:
@echo "📚 Building documentation..."
cd docs && poetry run sphinx-build -b html source build/html
@echo "✅ Documentation built in docs/build/html/"
servedocs:
@echo "📚 Starting live documentation server..."
cd docs && poetry run sphinx-autobuild source build/html --host 127.0.0.1 --port 8000 --re-ignore ".*\..*"
@echo "🌐 Documentation server running at http://127.0.0.1:8000"
cleandocs:
@echo "🧹 Cleaning documentation artifacts..."
rm -rf docs/build/ docs/source/api/generated/
@echo "✅ Documentation artifacts cleaned"