-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 678 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 678 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
25
26
27
28
29
30
31
COMPOSE = docker compose -f docker-compose.yml
DEV_COMPOSE = $(COMPOSE) -f docker-compose.develop.yml
ARGS = $(filter-out $@,$(MAKECMDGOALS))
help:
@echo "play -- Open shell to play"
@echo "test -- Run tests"
@echo "devshell -- Open shell with development dependencies"
play:
$(COMPOSE) run --rm pserver /bin/bash
devshell:
$(DEV_COMPOSE) run --rm pserver /bin/bash
test:
$(DEV_COMPOSE) run --rm pserver pytest $(ARGS)
check-imports:
$(DEV_COMPOSE) run --rm pserver isort **/*.py
check-style:
$(DEV_COMPOSE) run --rm pserver black **/*.py
build:
$(COMPOSE) build
build-dev:
$(DEV_COMPOSE) build
.PHONY: help play test devshell