-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (32 loc) · 1.02 KB
/
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
# Identify Operating System
ifeq ($(OS),Windows_NT)
OPEN := start
else
UNAME := $(shell uname -s)
ifeq ($(UNAME),Linux)
OPEN := xdg-open
else
OPEN := open
endif
endif
-include .env
export DOCKER_BUILDKIT=1
export COMPOSE_DOCKER_CLI_BUILD=1
.PHONY: help install-poetry poetry-shell install lock-noupdate pre-commit api-tests build-tests dockerized-tests teardown-tests
help:
@echo "Please use 'make <target>' where <target> is one of the following:"
@echo " install-poetry to install poetry"
@echo " poetry-shell to spawn a poetry virtual environment"
@echo " install to install poetry dependencies"
@echo " lock-noupdate to generate/update poetry.lock without updating irrelevant dependencies"
@echo " pre-commit to run pre-commit checks"
install-poetry:
pip install -r poetry-requirements.txt
poetry-shell:
poetry shell
install:
poetry install --no-root
lock-noupdate:
poetry lock --no-update
pre-commit:
poetry run pre-commit run --all-files