Add Black, isort and flake8.

This commit is contained in:
Chris Berkhout 2021-04-20 19:59:31 +02:00
parent 64d7591a65
commit 4f9353013e
4 changed files with 265 additions and 1 deletions

View file

@ -2,6 +2,13 @@
help: ## List make targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
lint: ## Lint source code
poetry run flake8
format: ## Format source code
poetry run isort .
poetry run black .
.PHONY: test
test: ## Run tests
poetry run pytest