Skip to content

Commit

Permalink
Makefile for fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Nov 1, 2023
1 parent d6c0991 commit 3df1648
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
30 changes: 30 additions & 0 deletions Makefile
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
2 changes: 1 addition & 1 deletion actions/latex/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ on:
type: string
required: false
default: 'draft'

runs:
using: "composite"
steps:
Expand Down

0 comments on commit 3df1648

Please sign in to comment.