-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
70 lines (45 loc) · 1.53 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: help
help:
@echo ================================================================================
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
@echo ================================================================================
.PHONY: lint
lint: ## Lint and fix
@poetry run ./dev/lint fix
.PHONY: lint-check
lint-check: ## Lint check only
@poetry run ./dev/lint
.PHONY: install-dev
install-dev: ## Install development dependencies
@./dev/install
.PHONY: notebook
notebook: ## Run Jupyter notebook server
@poetry run ./dev/start-jupyter 9095
.PHONY: book
book: ## Build static jupyter {book}
poetry run jupyter-book build notebooks --all
@cp notebooks/CNAME notebooks/_build/html/CNAME
.PHONY: nbconvert
nbconvert: ## Convert notebooks to myst markdown
poetry run ./dev/nbconvert
.PHONY: nbsync
nbsync: ## Sync python myst notebooks to .ipynb files - needed for vs notebook development
poetry run ./dev/nbsync
.PHONY: sphinx-config
sphinx-config: ## Build sphinx config
poetry run jupyter-book config sphinx notebooks
.PHONY: sphinx
sphinx:
poetry run sphinx-build notebooks path/to/book/_build/html -b html
.PHONY: publish
publish: ## Release to pypi
@poetry publish --build -u __token__ -p $(PYPI_TOKEN)
.PHONY: publish-book
publish-book: ## publish the book to github pages
poetry run ghp-import -n -p -f notebooks/_build/html
.PHONY: tests
tests: ## Unit tests
@./dev/test
.PHONY: outdated
outdated: ## Show outdated packages
poetry show -o -a