-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (45 loc) 路 1.73 KB
/
Copy pathMakefile
File metadata and controls
55 lines (45 loc) 路 1.73 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
# 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 install - Cleanly bootstrap the verified dev environment"
@echo " make dev-setup - Alias for make install"
@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 (hooks + CI enforcement parity checks)"
@echo " make clean - Clean build artifacts"
@echo ""
# Cleanly bootstrap the full development environment
install:
@bash scripts/dev-setup.sh
# Backwards-compatible alias for the canonical install target
dev-setup: install
# 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 (hooks + CI enforcement parity checks)
check:
uv run pre-commit run --all-files --hook-stage pre-commit
uv run pre-commit run --all-files --hook-stage pre-push
uv run unimport --check --gitignore --exclude 'venv/*' --exclude '.venv/*' --exclude '.uv-cache/*' --exclude '.uv_cache/*' src
uv run vulture --min-confidence 80 scripts/utils/vulture_whitelist.py src
uv run python scripts/check_unused_modules.py
uv run deptry src/
# 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