-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (42 loc) · 1.41 KB
/
Makefile
File metadata and controls
52 lines (42 loc) · 1.41 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
# Tunacode Development Makefile
# Provides convenient shortcuts for common development tasks
.PHONY: all help dev-setup install run test test-tmux lint check clean
# Default target shows help
help:
@echo "Tunacode Development Commands:"
@echo ""
@echo " make dev-setup - Full setup for fresh clone (installs deps, hooks)"
@echo " make install - Install/update dependencies"
@echo " make run - Run the development server"
@echo " make test - Run test suite"
@echo " make test-tmux - Run the tmux system test suite"
@echo " make lint - Run linters and formatters"
@echo " make check - Run harness checks (pre-commit + pre-push stages)"
@echo " make clean - Clean build artifacts"
@echo ""
# Full setup for fresh clone
dev-setup:
@bash scripts/dev-setup.sh
# Install/update dependencies
install:
uv sync --extra dev
# Run the development server
run:
uv run tunacode
# Run test suite
test:
uv run pytest
# Run tmux system test suite
test-tmux:
uv run pytest tests/system/cli/test_tmux_tools.py
# Run linters
lint:
uv run ruff check --fix .
# Run full harness checks locally (without commit/push)
check:
uv run pre-commit run --all-files --hook-stage pre-commit
uv run pre-commit run --all-files --hook-stage pre-push
# Clean build artifacts
clean:
rm -rf build/ dist/ *.egg-info .pytest_cache .ruff_cache
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true