-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,61 @@ | ||
.PHONY: lint notebook book tests | ||
|
||
.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 | ||
|
||
|
||
.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 | ||
|
||
publish: ## release to pypi | ||
@poetry publish --build -u lsbardel -p $(PYPI_PASSWORD) | ||
|
||
.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 | ||
|
||
tests: ## unit tests | ||
|
||
.PHONY: tests | ||
tests: ## Unit tests | ||
@./dev/test | ||
|
||
|
||
.PHONY: outdated | ||
outdated: ## Show outdated packages | ||
poetry show -o -a |