-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
37 lines (28 loc) · 942 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 rye environment
@echo "🚀 Creating virtual environment using rye and uv"
rye sync
.PHONY: check
check: ## Run the quality checks on the code
@echo "🚀 Running quality checks"
rye run ruff .
rye run pyright .
.PHONY: test
test: ## Test the code with pytest
@echo "🚀 Testing code: Running pytest"
rye run pytest
.PHONY: docs
docs: ## Build and serve the documentation
@echo "🚀 Testing documentation: Building and testing"
rye run mkdocs serve
.PHONY: deploy-docs
deploy-docs: ## Build and serve the documentation
@echo "🚀 Deploying documentation"
rye run python deploy_docs.py
.PHONY: docs-test
docs-test: ## Test if documentation can be built without warnings or errors
@rye 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