-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (37 loc) · 1.16 KB
/
Copy pathMakefile
File metadata and controls
45 lines (37 loc) · 1.16 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
.PHONY: install format test docs docs-serve docs-quick clean help
# Install dependencies
install:
pip install -e ".[dev]"
# Format code with Black
format:
black . -l 79
# Run tests if implementation tests exist
test:
@if [ -d tests ]; then pytest tests/ -v; else echo "No tests directory yet; skipping."; fi
# Build Quarto documentation
docs:
quarto render docs
# Serve documentation locally
docs-serve:
quarto preview docs --port 3004 --no-browser
# Clean build artifacts
clean:
rm -rf docs/_book
rm -rf docs/.quarto
rm -rf dist/
rm -rf *.egg-info
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
# Quick build and serve
docs-quick: docs docs-serve
# Help
help:
@echo "Available commands:"
@echo " make install - Install dependencies"
@echo " make format - Format code with Black"
@echo " make test - Run test suite"
@echo " make docs - Build Quarto documentation"
@echo " make docs-serve - Serve documentation locally"
@echo " make docs-quick - Build and serve documentation"
@echo " make clean - Remove build artifacts"
@echo " make help - Show this help message"