Skip to content

Commit

Permalink
first Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm committed Aug 25, 2023
1 parent c21f196 commit b6aef55
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.DEFAULT_GOAL := help

SHELL=/bin/bash

UNAME=$(shell uname -s)

.PHONY: install
install: ## Install a virtual environment
@poetry install -vv

.PHONY: fmt
fmt: ## Run autoformatting and linting
@poetry run pip install pre-commit
@poetry run pre-commit install
@poetry run pre-commit run --all-files

.PHONY: clean
clean: ## Clean up caches and build artifacts
@git clean -X -d -f


.PHONY: help
help: ## Display this help screen
@echo
@echo -e "\033[1mAvailable commands:\033[0m"
@echo
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort
@echo

.PHONY: test
test: install ## Run tests
@poetry run pytest

0 comments on commit b6aef55

Please sign in to comment.