-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 863 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (25 loc) · 863 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
.PHONY: setup lint test clean build-data build-signals run-backtest run-risk build-report reproduce
PYTHON ?= python3
setup:
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install -e ".[dev]"
lint:
$(PYTHON) -m ruff check .
$(PYTHON) -m ruff format --check .
test:
$(PYTHON) -m pytest -q
clean:
find . -name "__pycache__" -type d -prune -exec rm -rf {} +
find . -name "*.pyc" -delete
build-data:
$(PYTHON) -m scripts.reproduce --target build-data
build-signals: build-data
$(PYTHON) -m scripts.reproduce --target build-signals
run-backtest: build-signals
$(PYTHON) -m scripts.reproduce --target run-backtest
run-risk: run-backtest
$(PYTHON) -m scripts.reproduce --target run-risk
build-report: run-risk
$(PYTHON) -m scripts.reproduce --target build-report
reproduce: build-report
$(PYTHON) -m scripts.reproduce --target reproduce