-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 1.13 KB
/
Makefile
File metadata and controls
37 lines (28 loc) · 1.13 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
.PHONY: test lint format build up down shell run download
# Run the unit test suite inside the Docker container
test:
docker compose run --rm --user "$$(id -u):$$(id -g)" research pytest -q
# Check style with ruff inside the Docker container
lint:
docker compose run --rm --user "$$(id -u):$$(id -g)" research ruff check src tests
# Format code with ruff inside the Docker container
format:
docker compose run --rm --user "$$(id -u):$$(id -g)" research ruff format src tests
# Build the Docker image
build:
docker compose build
# Bring up the research container
up:
docker compose up
# Tear down the research container
down:
docker compose down --remove-orphans
# Open a shell inside the container
shell:
docker compose run --rm --user "$$(id -u):$$(id -g)" research bash
# Run the default experiment runner
run:
docker compose run --rm --user "$$(id -u):$$(id -g)" research python -m molmole_research.runner run
# Download the MolMole dataset into the data/ directory
download:
docker compose run --rm --user "$$(id -u):$$(id -g)" research python -m molmole_research.downloader run --dataset doxa-friend/MolMole_Patent300 --out data/images