-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 changed file
with
32 additions
and
0 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
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 |