-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
35 lines (25 loc) · 849 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
26
27
28
29
30
31
32
33
34
35
PYTEST_CMD=TESTING=true poetry run pytest test -n 4 -vv
SHELL := /bin/bash # Use bash syntax
# dev aliases format and lint
RUFF=poetry run ruff *.py test
BLACK=poetry run black *.py test
MYPY=poetry run mypy *.py test
install: ## install poetry and pip + all deps for the project
pip install -U pip poetry
poetry install
format: ## Reformat project code.
${RUFF} --fix
${BLACK}
lint: ## Lint project code
${RUFF}
${BLACK} --check
${MYPY}
test: ## to run tests
${PYTEST_CMD}
docker-build: ## docker-build to build the bot app
docker build -t lamap-bot:latest -f Dockerfile .
compose-run: ## compose-run
docker-compose up -d --build
help: ## Show this help
@egrep -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.PHONY: install docker-build lint format test help