-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (56 loc) · 2.11 KB
/
Copy pathMakefile
File metadata and controls
68 lines (56 loc) · 2.11 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
# =============================================================================
# DO App Sandbox - Development Makefile
# =============================================================================
# Run `make help` to see available commands
#
# For test commands, see tests/Makefile:
# cd tests && make help
# =============================================================================
.PHONY: help install lint format type-check security check fix clean
# =============================================================================
# Help
# =============================================================================
help:
@echo ""
@echo "DO App Sandbox - Development Commands"
@echo "======================================"
@echo ""
@echo "Development:"
@echo " make install Install dependencies"
@echo " make lint Run Ruff linter"
@echo " make format Format code with Ruff"
@echo " make type-check Run mypy type checker"
@echo " make security Run pip-audit security scan"
@echo " make check Run all checks (lint + type-check)"
@echo " make fix Auto-fix linting issues and format"
@echo " make clean Remove build artifacts"
@echo ""
@echo "Testing:"
@echo " cd tests && make help See test commands"
@echo ""
@echo "Quick test examples:"
@echo " cd tests && make test-setup # Create shared sandboxes"
@echo " cd tests && make test-git # Run git tests"
@echo " cd tests && make test-teardown # Cleanup"
@echo ""
# =============================================================================
# Development
# =============================================================================
install:
uv sync --extra dev
lint:
uv run ruff check src/ tests/
format:
uv run ruff format src/ tests/
type-check:
uv run mypy src/
security:
uv run pip-audit
check: lint type-check
@echo "All checks passed!"
fix:
uv run ruff check --fix src/ tests/
uv run ruff format src/ tests/
clean:
rm -rf build/ dist/ *.egg-info/ .mypy_cache/ .pytest_cache/ .ruff_cache/
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true