-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
37 lines (28 loc) · 932 Bytes
/
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
.PHONY: install
install: ## Install the uv environment
@echo "🚀 Creating virtual environment using uv"
uv sync
.PHONY: check
check: ## Run the quality checks on the code
@echo "🚀 Running quality checks"
uv run ruff check .
uv run pyright .
.PHONY: test
test: ## Test the code with pytest
@echo "🚀 Testing code: Running pytest"
uv run pytest
.PHONY: docs
docs: ## Build and serve the documentation
@echo "🚀 Testing documentation: Building and testing"
uv run mkdocs serve
.PHONY: deploy-docs
deploy-docs: ## Build and serve the documentation
@echo "🚀 Deploying documentation"
uv run python deploy_docs.py
.PHONY: docs-test
docs-test: ## Test if documentation can be built without warnings or errors
@uv run mkdocs build -s
.PHONY: help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help