module: adopt Poetry dependency manager

This commit is contained in:
cn authored and Christian Nicolai committed 2020-08-08 23:18:09 +02:00
1 parent 64b19885e9
commit 5851cd4e37
5 files changed
+49 -24

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
# https://tech.davis-hansson.com/p/make/
SHELL := bash
.ONESHELL:
.SILENT:
.SHELLFLAGS := -eux -o pipefail -c
.DELETE_ON_ERROR:
.DEFAULT_GOAL := all
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
.PHONY: all
all: lint ## Run lint and test (default goal)
.PHONY: lint
lint: ## Lint all source code
poetry run yapf -q *.py
poetry run pylint *.py
poetry run mypy *.py
.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}'