-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 699 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 699 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
UV ?= uv
PYTHON ?= $(UV) run python
-include .env
# Marker generated by the datasets target after a successful download.
DATASET_STAMP := $(DATASET_ROOT)/.downloaded
.PHONY: setup sync hooks datasets format lint optuna_dashboard
setup: sync hooks datasets
sync:
$(UV) sync
hooks:
git config core.hooksPath ./.git-hooks
datasets: $(DATASET_STAMP)
$(DATASET_STAMP): dataset.sh .env
bash dataset.sh
touch "$@"
format:
$(UV) run ruff format .
lint: format
$(UV) run ruff check --fix .
optuna_dashboard:
@storage_url="$$( $(PYTHON) -c 'from peincfedmdrs.utils.optuna import build_storage_name; print(build_storage_name())')"; \
$(UV) run optuna-dashboard "$$storage_url" --host 0.0.0.0