-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
33 lines (27 loc) · 919 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
build:
python -m build --sdist --wheel
docker:
docker build . -t flaport/sax:latest -f Dockerfile.dev
docker build . -t flaport/sax:0.14.1 -f Dockerfile.dev
pre-commit:
pre-commit install
git config filter.nbstripout.extrakeys 'metadata.papermill'
nbrun:
find . -name "*.ipynb" -not -path "*/.ipynb_checkpoints/*" | xargs parallel -j `nproc --all` papermill {} {} -k python3 :::
rm -rf modes
dockerpush:
docker push flaport/sax:latest
docker push flaport/sax:0.14.1
.PHONY: docs
docs:
cd docs/source/ && make && cd .. && make html
clean:
find . -name "modes" | xargs rm -rf
find . -name "dist" | xargs rm -rf
find . -name "build" | xargs rm -rf
find . -name "builds" | xargs rm -rf
find . -name "__pycache__" | xargs rm -rf
find . -name "*.so" | xargs rm -rf
find . -name ".ipynb_checkpoints" | xargs rm -rf
find . -name ".pytest_cache" | xargs rm -rf
find . -name ".mypy_cache" | xargs rm -rf