-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 951 Bytes
/
Makefile
File metadata and controls
29 lines (22 loc) · 951 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
.PHONY: help install test format lint docs clean
help: ## Show available commands
@echo "Essential MeasureIt development commands:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install with development dependencies
uv pip install -e ".[dev,docs,jupyter]"
pre-commit install
test: ## Run tests with coverage
pytest --cov=src/MeasureIt --cov-report=html --cov-report=term-missing
format: ## Format and lint code
ruff format src/ tests/
ruff check --fix src/ tests/
lint: ## Check code quality (format + lint + type check)
ruff format --check src/ tests/
ruff check src/ tests/
mypy src/
docs: ## Build documentation
cd docs/source && make html
clean: ## Clean build artifacts
rm -rf build/ dist/ *.egg-info/ .pytest_cache/ .coverage htmlcov/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete