forked from tensorlayer/TensorLayer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 740 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
default:
@echo "Usage:"
@echo "\tmake lint # run pylint"
@echo "\tmake format # run yapf, autoflake and isort"
@echo "\tmake install3 # install tensorlayer in current workspace with pip3"
lint:
pylint examples/*.py
pylint tensorlayer
test:
python3 tests/models/test_model_core.py
python3 tests/layers/test_layernode.py
python3 tests/files/test_utils_saveload.py
format:
autoflake -i examples/*.py
autoflake -i tensorlayer/*.py
autoflake -i tensorlayer/**/*.py
isort -rc examples
isort -rc tensorlayer
yapf -i examples/*.py
yapf -i tensorlayer/*.py
yapf -i tensorlayer/**/*.py
install3:
pip3 install -U . --user
TAG = tensorlayer-docs:snaphot
doc:
docker build --rm -t $(TAG) -f docker/docs/Dockerfile .