-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (36 loc) · 1.37 KB
/
Makefile
File metadata and controls
44 lines (36 loc) · 1.37 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
42
43
44
# Project configuration
UV = uv
# Colors for output
BLUE = \033[34m
GREEN = \033[32m
YELLOW = \033[33m
RED = \033[31m
NC = \033[0m # No Color
# =============================================================================
# HELP
# =============================================================================
.PHONY: help
help: ## Show this help message
@echo "$(BLUE)Project Commands$(NC)"
@echo "$(BLUE)========================$(NC)"
@echo "$(GREEN)Development Workflow:$(NC)"
@awk 'BEGIN {FS = ":.*##"; printf ""} /^[a-zA-Z_-]+:.*?##/ { if ($$1 !~ /^docker-/ && $$1 !~ /^help$$/) printf " $(YELLOW)%-20s$(NC) %s\n", $$1, $$2 }' $(MAKEFILE_LIST)
# =============================================================================
# CODE QUALITY
# =============================================================================
.PHONY: lint
lint: ## Run linting with ruff
@echo "$(BLUE)Running linter...$(NC)"
${UV} run ruff check .
.PHONY: lint-fix
lint-fix: ## Fix linting issues automatically
@echo "$(BLUE)Fixing linting issues...$(NC)"
${UV} run ruff check --fix .
.PHONY: format
format: ## Format code and organize imports with ruff
@echo "$(BLUE)Formatting code and organizing imports...$(NC)"
${UV} run ruff check --select I --fix .
${UV} run ruff format .
.PHONY: quality
quality: format lint-fix ## Run all quality checks
@echo "$(GREEN)All quality checks completed!$(NC)"