-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1.11 KB
/
Makefile
File metadata and controls
38 lines (26 loc) · 1.11 KB
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
PYTHON_FILES = $(shell find src tests -iname "*.py" -not -path "**/__pycache__/**")
.PHONY: setup setup-hard format format-check lint lint-fix types test test-coverage uv-lock uv-update help
setup: ## Install developer experience
@uv sync
@uv run pre-commit install --install-hooks || echo "Warning: pre-commit hooks not installed (core.hooksPath may be set)"
setup-hard: ## Clean install (remove caches)
@rm -rf .venv uv.lock
@make setup
format: ## Check all Python files format
@uv run ruff format --check $(PYTHON_FILES)
format-fix: ## Format Python files
@uv run ruff format $(PYTHON_FILES)
lint: ## Lint all Python files
@uv run ruff check $(PYTHON_FILES)
lint-fix: ## Lint and auto-fix Python files
@uv run ruff check --fix $(PYTHON_FILES)
types: ## Type check all Python files
@uv run ty check
test: ## Run test suite
@uv run pytest tests/
uv-lock: ## Lock dependencies
@uv lock
uv-update: ## Update dependencies
@uv lock --upgrade
help: ## Show available commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'