-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
45 lines (39 loc) · 859 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
41
42
43
44
45
SRC = magi
N_CPUS ?= $(shell grep -c ^processor /proc/cpuinfo)
.PHONY: test
test:
JAX_PLATFORM_NAME=cpu pytest -n $(N_CPUS) \
--color=yes \
-rf \
--ignore-glob="*/agent_test.py" \
--ignore-glob="*/agent_distributed_test.py" \
--durations=10 \
$(SRC)
.PHONY: integration-test
integration-test:
JAX_PLATFORM_NAME=cpu pytest -n $(N_CPUS) \
--color=yes \
-rf \
--durations=10 \
$(SRC)
.PHONY: isort
isort:
isort $(SRC)
.PHONY: clean
clean:
find . -type d -name "__pycache__" -exec rm -r {} +
rm -rf build
rm -rf dist
rm -rf *.egg-info
rm -rf .pytest_cache
rm -rf .pytype
rm -rf .nox
.PHONY: lint
lint:
pylint $(SRC)
.PHONY: install
install:
pip install -U pip setuptools wheel
pip install 'git+https://github.com/deepmind/acme.git#egg=dm-acme[jax,tf,examples]'
pip install -e '.[jax]'
pip install -r requirements/dev.txt