-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
52 lines (41 loc) · 1.19 KB
/
Makefile
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
47
48
49
50
51
52
.PHONY: install lint license format test FORCE
install: FORCE
pip install -e .[dev]
uninstall: FORCE
pip uninstall cellarium-ml
lint: FORCE
ruff check .
ruff format --check .
docs: FORCE
cd docs && make html
license: FORCE
python scripts/update_headers.py
format: license FORCE
ruff check --fix .
ruff format .
typecheck: FORCE
mypy cellarium tests
test: FORCE
ifeq (${TEST_DEVICES}, 2)
pytest -v -k multi_device --ignore=tests/dataloader
else ifeq (${TEST_DEVICES}, 3)
pytest -v -k multi_device --ignore=tests/dataloader
else
# default
pytest -v --ignore=tests/dataloader
endif
test-dataloader: FORCE
ifeq (${TEST_DEVICES}, 2)
pytest -v -k multi_device tests/dataloader
else ifeq (${TEST_DEVICES}, 3)
pytest -v -k multi_device tests/dataloader
else
# default
pytest -v tests/dataloader
endif
test-examples: FORCE
cellarium-ml onepass_mean_var_std fit --config examples/cli_workflow/onepass_train_config.yaml
cellarium-ml incremental_pca fit --config examples/cli_workflow/ipca_train_config.yaml
cellarium-ml logistic_regression fit --config examples/cli_workflow/lr_train_config.yaml
cellarium-ml logistic_regression fit --config examples/cli_workflow/lr_resume_train_config.yaml
FORCE: