-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 1.19 KB
/
Makefile
File metadata and controls
51 lines (42 loc) · 1.19 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
.PHONY: install dev-install sync run-cli format lint clean requirements info
# Install production dependencies only
install:
uv venv
uv pip install -e .
# Install with development dependencies
dev-install:
uv venv
uv pip install -e ".[dev]"
# Sync dependencies (faster than install for existing environment)
sync:
uv pip sync requirements.txt 2>/dev/null || uv pip install -e ".[dev]"
# Run the CLI with a default example
run-cli:
uv run python -m src.app.cli "Build a Fibonacci module and unit test it."
# Format code with black
format:
uv run black src
uv run ruff check --fix src
# Lint code
lint:
uv run ruff check src
uv run black --check src
# Clean build artifacts
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
rm -rf .pytest_cache/
rm -rf htmlcov/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
# Generate requirements.txt (useful for deployment)
requirements:
uv pip compile pyproject.toml -o requirements.txt
# Show project info
info:
@echo "AutoGen Multi-Agent Chat Application"
@echo "===================================="
@uv --version
@echo "Python: $$(uv run python --version)"
@echo "Virtual environment: $$(uv venv --help | head -1)"