-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (20 loc) · 760 Bytes
/
Makefile
File metadata and controls
24 lines (20 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: help
help: ## Show help.
@printf "A set of development commands.\n"
@printf "\nUsage:\n"
@printf "\t make \033[36m<commands>\033[0m\n"
@printf "\nThe Commands are:\n\n"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\t\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: setup
setup: ## Setup poetry environment
poetry shell
poetry install
.PHONY: test
test: ## Run tests locally
poetry run pytest --cov=src --color=yes test/
.PHONY: lint pre-commit
lint | pre-commit: ## Run the pre-commit config
poetry run pre-commit run -a
.PHONY: requirements
requirements: ## Export requirements file based on poetry packages
poetry export -f requirements.txt --output requirements.txt --without-hashes