module: add Makefile for development commands
parent
1b3fc8f2df
commit
ded2908236
@ -0,0 +1,24 @@
|
||||
|
||||
# https://tech.davis-hansson.com/p/make/
|
||||
SHELL := bash
|
||||
.ONESHELL:
|
||||
.SHELLFLAGS := -eu -o pipefail -c
|
||||
.DELETE_ON_ERROR:
|
||||
.DEFAULT_GOAL := all
|
||||
MAKEFLAGS += --warn-undefined-variables
|
||||
MAKEFLAGS += --no-builtin-rules
|
||||
|
||||
.PHONY: all
|
||||
all: lint test ## Run lint and test (default goal)
|
||||
|
||||
.PHONY: lint
|
||||
lint: ## Lint all source code
|
||||
poetry run pylint veml6070
|
||||
|
||||
.PHONY: test
|
||||
test: ## Run all tests
|
||||
poetry run pytest
|
||||
|
||||
.PHONY: help
|
||||
help: ## Print this help text
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}'
|
Loading…
Reference in New Issue