-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (32 loc) · 1.04 KB
/
makefile
File metadata and controls
41 lines (32 loc) · 1.04 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
# Makefile for OxyTCMRI project
SETTINGS_FILE = settings.toml
VENV_DIR := .venv
PYTHON := $(VENV_DIR)/bin/python
PIP := $(VENV_DIR)/bin/pip
UV := $(VENV_DIR)/bin/uv
.PHONY: compute-dti-normative-values test docs install
# ensure uv is installed system-wide (fallback)
uv:
@command -v uv >/dev/null 2>&1 || { \
echo "📦 Installing uv with pip..."; \
python3 -m pip install --user uv; \
}
install: uv
@echo "🔄 Installing base dependencies with uv..."
@uv sync
install-dev: uv
@echo "🔧 Installing base + dev dependencies with uv..."
@uv sync --group dev
docs: uv
@echo "📘 Installing doc dependencies and building site..."
@uv pip install --group docs
@.venv/bin/mkdocs build
test: install-dev
@echo "🧪 Running tests..."
@.venv/bin/pytest
test-coverage: install-dev
@echo "🧪 Running tests with coverage..."
@.venv/bin/pytest --cov --cov-branch --cov-report=xml
# Task: launch the DTI normative values computation
compute-dti-normative-values: install
$(PYTHON) main.py compute-dti-normative-values --settings $(SETTINGS_FILE)