-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (37 loc) · 857 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
39
40
41
42
43
44
# Convenient shortcuts to run some tasks
# Useful if you're not using DevContainers
# Default target when just `make` is executed
default: help
# Show help
.PHONY: help
help:
@echo "Usage:"
@echo " make [command]"
@echo ""
@echo "Commands:"
@echo " lint Run linters"
@echo " safety Run safety"
@echo " test Run tests"
@echo " lock Update poetry lock file"
@echo " shell Open a shell in the dev container"
@echo ""
# Run lint
.PHONY: lint
lint:
docker compose run devcontainer poe lint
# Run safety
.PHONY: safety
safety:
docker compose run devcontainer poe safety
# Run tests
.PHONY: test
test:
docker compose run devcontainer poe test
# Update poetry lock file
.PHONY: lock
lock:
docker compose run devcontainer poetry lock --no-update
# Open a docker shell
.PHONY: shell
shell:
docker compose run devcontainer