-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 loc) · 842 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
36
37
38
# See `make help` for a list of all available commands.
.ONESHELL:
.DEFAULT_GOAL := help
SHELL=/bin/bash -eu -o pipefail
README.md: Makefile ## Update dynamic blocks in README.md
poetry run cog -r README.md
.PHONY: install
install: ## Setup environment
poetry install
.PHONY: fmt
fmt: ## Format Python code
poetry run ruff format .
.PHONY: lint
lint: ## Lint Python code
poetry run ruff check .
.PHONY: fix
fix: ## Fix linting errors
poetry run ruff check --fix .
.PHONY: up
run: ## Stand up the environment
docker compose up --build
.PHONY: test
test: ## Run tests
curl localhost:8004/ping
.PHONY: help
help:
@echo -e "Available make commands:"
@echo -e ""
@echo "$$(grep -hE '^\S+:.*##' $(MAKEFILE_LIST) | sort | sed -e 's/:.*##\s*/:/' -e 's/^\(.\+\):\(.*\)/\1:\2/' | awk -F: '{ printf "%-25s %s\n", $$1, $$2 }')"