File size: 950 Bytes
c7c67ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.DEFAULT_GOAL := help
PORT ?= 8001

.PHONY: help dagshub-auth fisher-upload fisher-pull fisher-status fisher-serve

help:
	@printf '%s\n' \
	  'Fisher data shortcuts:' \
	  '  make dagshub-auth     Configure repo-local Git auth from DVC credentials' \
	  '  make fisher-upload   Register and upload validation/fisher with DVC' \
	  '  make fisher-pull     Download validation/fisher from DVC' \
	  '  make fisher-status   Check local and remote DVC status' \
	  '  make fisher-serve    Serve the dashboard at http://localhost:$(PORT)/dashboard/'

dagshub-auth:
	bash scripts/dagshub-auth.sh

fisher-upload:
	bash scripts/fisher-data.sh upload

fisher-pull:
	bash scripts/fisher-data.sh download

fisher-status:
	bash scripts/fisher-data.sh status

fisher-serve:
	@test -f validation/fisher/dashboard/index.html || { echo 'Dashboard not found; run make fisher-pull first.' >&2; exit 1; }
	python -m http.server "$(PORT)" --directory validation/fisher