-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
45 lines (36 loc) · 1.21 KB
/
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
38
39
40
41
42
43
44
45
.PHONY: install
install: ## Install the uv environment.
@echo "🚀 Creating virtual environment using uv"
@uv sync
.PHONY: check
check: ## Run code quality tools.
@echo "🚀 Linting code: Running pre-commit"
@pre-commit run -a
@echo "🚀 Static type checking: Running mypy"
@uv run mypy
@echo "🚀 Checking for dependency issues: Running deptry"
@uv run deptry python
.PHONY: test
test: test-unit test-functional
.PHONY: test-unit
test-unit: ## Run unit tests.
@echo "🚀 Running unit tests"
@uv run pytest tests/unit
.PHONY: test-functional
test-functional: ## Run functional tests.
@echo "🚀 Running functional tests"
@uv run pytest tests/functional -n auto --dist loadgroup
.PHONY: build
build: ## Build wheel and sdist files using maturin.
@echo "🚀 Creating wheel and sdist files"
@maturin build
.PHONY: docs-test
docs-test: ## Test if documentation can be built without warnings or errors.
@uv run mkdocs build -s
.PHONY: docs
docs: ## Build and serve the documentation.
@uv run mkdocs serve
.PHONY: help
help: ## Show help for the commands.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help