forked from Traqora/astroml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (38 loc) · 1.44 KB
/
Copy pathMakefile
File metadata and controls
48 lines (38 loc) · 1.44 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
.PHONY: help quickstart test test-api lint format clean install run-api
help:
@echo "AstroML Development Commands"
@echo "============================"
@echo ""
@echo "make quickstart Run quick start: ingestion → graph → train pipeline"
@echo "make quickstart-verbose Run quick start with verbose output"
@echo "make test Run full test suite"
@echo "make test-api Run API integration tests only"
@echo "make lint Run linters (flake8, mypy)"
@echo "make format Format code (black, isort)"
@echo "make install Install development dependencies"
@echo "make clean Clean build artifacts and cache"
@echo "make run-api Start the FastAPI dev server on localhost:8000"
@echo ""
quickstart:
python -m astroml.quick_start
quickstart-verbose:
python -m astroml.quick_start --num-ledgers 200 --num-accounts 100 --epochs 20
test:
pytest tests/ -v
test-api:
pytest api/tests/ -v --tb=short
lint:
flake8 astroml/ tests/
mypy astroml/ --ignore-missing-imports
format:
black astroml/ tests/
isort astroml/ tests/
run-api:
uvicorn api.app:app --host 0.0.0.0 --port 8000 --reload
install:
pip install -e ".[dev]"
clean:
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
rm -rf .pytest_cache .mypy_cache build/ dist/ *.egg-info
rm -rf benchmark_results/quickstart .astroml_state_quickstart