-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
40 lines (30 loc) · 865 Bytes
/
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
.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
else
# default
pytest -v
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: