-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (29 loc) · 734 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (29 loc) · 734 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
37
38
39
40
41
42
43
44
45
46
.PHONY: test lint install-hooks
CUDA_AVAILABLE := $(shell command -v nvcc >/dev/null 2>&1 && echo 1 || echo 0)
PORT ?= 9998
test:
uv run pytest
lint:
uvx ruff check
uvx black src/emevo tests scripts --check
uvx isort src/emevo tests scripts --check
format:
uvx black src/emevo tests scripts
uvx isort src/emevo tests scripts
publish:
uv build
uvx twine upload dist/*
register:
uv run ipython kernel install --user --name=emevo-lab
jupyter:
uv run jupyter lab --port=$(PORT) --no-browser
sync:
ifeq ($(CUDA_AVAILABLE),1)
uv sync --extra=analysis --extra=cuda12
else
uv sync --extra=analysis
endif
all: test lint
install-hooks:
git config core.hooksPath .githooks
@echo "Git hooks enabled from .githooks"