Add Black, isort and flake8.
This commit is contained in:
parent
64d7591a65
commit
4f9353013e
4 changed files with 265 additions and 1 deletions
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue