forked from adfinis/document-merge-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
21 lines (15 loc) · 851 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.PHONY: help install install-dev start test
.DEFAULT_GOAL := help
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort -k 1,1 | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
start: ## Start the development server
@docker-compose up -d --build
test: ## Test the project
docker-compose exec document-merge-service poetry run sh -c "black --check . && flake8 && mypy document_merge_service && pytest --no-cov-on-fail --cov --create-db"
shell: ## Shell into document merge service
@docker-compose exec document-merge-service poetry shell
format: ## Format python code with black
@docker-compose exec document-merge-service poetry run black .
@docker-compose exec document-merge-service poetry run isort .
dmypy: ## Run mypy locally (starts a deamon for performance)
dmypy run document_merge_service