-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 850 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 850 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 dev test test-cov lint fmt clean
PYTHON ?= python3
help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install package
$(PYTHON) -m pip install -e .
dev: ## Install with dev dependencies
$(PYTHON) -m pip install -e ".[dev]"
test: ## Run tests
$(PYTHON) -m pytest tests/ -v
test-cov: ## Run tests with coverage
$(PYTHON) -m pytest tests/ -v --cov=trache --cov-report=term-missing
lint: ## Run linter
ruff check src/ tests/
fmt: ## Format code
ruff format src/ tests/
ruff check --fix src/ tests/
clean: ## Clean build artifacts
rm -rf dist/ build/ *.egg-info src/*.egg-info .pytest_cache .ruff_cache htmlcov .coverage
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true