-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 856 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 856 Bytes
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
# Makefile for parametric-umap
.PHONY: help install test lint format build clean pre-commit
help: ## Show this help message
@echo "Available commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install all dependencies (CPU torch)
uv sync --extra dev --extra test --extra examples --extra cpu
test: ## Run tests
uv run pytest
lint: ## Run linting checks
uv run ruff check .
format: ## Format code
uv run ruff format .
build: ## Build the package
uv build
clean: ## Clean build artifacts
rm -rf dist/ build/ *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
rm -f .coverage coverage.xml
rm -rf htmlcov/
pre-commit: ## Install pre-commit hooks
uv run pre-commit install