-
Notifications
You must be signed in to change notification settings - Fork 0
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
31 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
VENV :=.venv | ||
|
||
.PHONY: install | ||
install: ## Install a virtual environment | ||
python -m venv ${VENV} | ||
${VENV}/bin/pip install --upgrade pip | ||
|
||
.PHONY: fmt | ||
fmt: install ## Run autoformatting and linting | ||
${VENV}/bin/pip install pre-commit | ||
${VENV}/bin/pre-commit install | ||
${VENV}/bin/pre-commit run --all-files | ||
|
||
.PHONY: build | ||
build: install ## Build the book | ||
${VENV}/bin/pip install jupyter-book | ||
${VENV}/bin/jupyter-book clean book | ||
${VENV}/bin/jupyter-book build book | ||
touch book/_build/html/.nojekyll | ||
|
||
.PHONY: clean | ||
clean: ## Clean up caches and build artifacts | ||
@git clean -X -d -f | ||
|
||
.PHONY: help | ||
help: ## Display this help screen | ||
@echo -e "\033[1mAvailable commands:\033[0m" | ||
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort |
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ on: | |
type: string | ||
required: false | ||
default: 'draft' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|