-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (31 loc) · 1.27 KB
/
Makefile
File metadata and controls
41 lines (31 loc) · 1.27 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
39
40
41
.PHONY: help install lint format test clean check all
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@awk 'BEGIN {FS = ":.*##"; printf "\n"} /^[a-zA-Z_-]+:.*?##/ { printf " %-15s %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
install: ## Install project dependencies with uv
uv sync
lint: ## Run ruff linter checks
uv run ruff check .
format: ## Format code with ruff
uv run ruff format .
test: ## Run tests with pytest
uv run pytest
test-cov: ## Run tests with coverage
uv run pytest --cov=clab_connector
check: lint ## Run all checks (lint) - required before committing
@echo "✅ All checks passed!"
fix: ## Auto-fix linting issues and format code
uv run ruff check --fix .
uv run ruff format .
clean: ## Clean up cache and temporary files
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
find . -type f -name "*.pyd" -delete
find . -type f -name ".coverage" -delete
find . -type d -name "*.egg-info" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find . -type d -name ".ruff_cache" -exec rm -rf {} + 2>/dev/null || true
all: check test ## Run all checks and tests