forked from petarjov/acme-data-generation
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
25 lines (17 loc) · 772 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
.DEFAULT_GOAL := help
.PHONY: help
#include .env
export
# taken from https://container-solutions.com/tagging-docker-images-the-right-way/
help: ## Print this help
@grep -E '^[a-zA-Z_-\.]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
shell: ## Activate venv using poetry
poetry shell
test: ## Run tests with pytest
poetry run pytest tests
coverage: ## Run tests with pytest and coverage
poetry run pytest --cov=acme_data_generation tests
memprofile.generate: ## Run memory profile with FIL
poetry run fil-profile run project/scripts/generate.py
business-rules: ## Convert markdown to pdf (just because I am lazy)
poetry run pandoc -s docs/business_rules.md -o docs/business_rules.pdf --template eisvogel