-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (53 loc) · 1.76 KB
/
Makefile
File metadata and controls
72 lines (53 loc) · 1.76 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.PHONY: help install sync update clean test test-cov lint format type-check pre-commit build run
.DEFAULT_GOAL := help
help: ## Show this help message
@echo 'Usage: make [target]'
@echo ''
@echo 'Available targets:'
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies and setup pre-commit hooks
uv sync --all-groups
uv run pre-commit install
uv run pre-commit install --hook-type commit-msg
sync: ## Sync dependencies
uv sync --all-groups
update: ## Update dependencies
uv lock --upgrade
uv sync --all-groups
clean: ## Clean build artifacts and caches
rm -rf build/
rm -rf dist/
rm -rf *.egg-info
rm -rf .pytest_cache/
rm -rf .ruff_cache/
rm -rf htmlcov/
rm -rf .coverage
rm -rf coverage.xml
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
lint: ## Run linter (ruff)
uv run --group lint ruff check .
lint-fix: ## Run linter with auto-fix
uv run --group lint ruff check --fix .
format: ## Format code with ruff
uv run --group lint ruff format .
format-check: ## Check code formatting
uv run --group lint ruff format --check .
type-check: ## Run type checker (pyright)
uv run --group type-check pyright
pre-commit: ## Run all pre-commit hooks
uv run --group lint pre-commit run --all-files
ci: lint format-check type-check test ## Run all CI checks
build: ## Build all packages
uv build
run: ## Run main application
uv run python main.py
dev: ## Run application in development mode
uv run python main.py
shell: ## Open Python shell with project dependencies
uv run python
lock: ## Generate uv.lock file
uv lock
tree: ## Show project dependency tree
uv tree