-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (47 loc) · 1.08 KB
/
Makefile
File metadata and controls
57 lines (47 loc) · 1.08 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
.PHONY: install format lint test clean
# Default target
all: install format lint test
# Install dependencies
install:
@echo "Installing dependencies..."
poetry install
# Format code
format:
@echo "Formatting code..."
poetry run black debugger tests
poetry run isort debugger tests
# Lint code
lint:
@echo "Linting code..."
poetry run ruff debugger tests
poetry run mypy debugger
# Run tests
test:
@echo "Running tests..."
poetry run pytest
# Create .env file from template if doesn't exist
env:
@if [ ! -f .env ]; then \
echo "Creating .env file..."; \
echo "OPENAI_API_KEY=" > .env; \
echo "OPENAI_ORGANIZATION=" >> .env; \
echo "DEFAULT_MODEL=gpt-4o" >> .env; \
echo "MODEL_TEMPERATURE=0.7" >> .env; \
echo "MODEL_MAX_TOKENS=4096" >> .env; \
else \
echo ".env file already exists"; \
fi
# Clean up
clean:
@echo "Cleaning up..."
rm -rf .pytest_cache
rm -rf .mypy_cache
rm -rf .ruff_cache
rm -rf **/__pycache__
rm -rf **/*.pyc
run-leader:
poetry run python main.py leader
run-debugger:
poetry run python main.py debugger
run-fixer:
poetry run python main.py fixer