-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 1010 Bytes
/
Copy pathMakefile
File metadata and controls
38 lines (26 loc) · 1010 Bytes
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
.PHONY: setup test evolve arena dashboard lint clean help
help: ## Show available commands
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
setup: ## Install all dependencies
pip install -e ".[dev]"
test: ## Run all tests
python -m pytest tests/ -v
lint: ## Check code style
python -m py_compile darwinia/__main__.py
@echo "Syntax OK"
evolve: ## Run 50-generation evolution
python -m darwinia evolve -g 50
evolve-quick: ## Run quick 10-generation demo
python -m darwinia evolve -g 10
evolve-json: ## Run evolution with JSON output
python -m darwinia evolve -g 50 --json
arena: ## Test champion in adversarial arena
python -m darwinia arena
arena-json: ## Arena test with JSON output
python -m darwinia arena --json
dashboard: ## Launch Streamlit dashboard
streamlit run dashboard/app.py
info: ## Show project info
python -m darwinia info
clean: ## Remove output files
rm -rf output/*