tensorlayer3/Makefile

37 lines
715 B
Makefile
Raw Permalink Normal View History

2021-05-11 14:32:09 +08:00
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:
2021-08-02 17:02:39 +08:00
autoflake -ir examples
autoflake -ir tensorlayer
autoflake -ir tests
2021-05-11 14:32:09 +08:00
isort -rc examples
isort -rc tensorlayer
2021-08-02 17:02:39 +08:00
isort -rc tests
2021-05-11 14:32:09 +08:00
2021-08-02 17:02:39 +08:00
yapf -ir examples
yapf -ir tensorlayer
yapf -ir tests
2021-05-11 14:32:09 +08:00
install3:
pip3 install -U . --user
TAG = tensorlayer-docs:snaphot
doc:
docker build --rm -t $(TAG) -f docker/docs/Dockerfile .