-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (30 loc) · 594 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
.DEFAULT_GOAL := help
SHELL := bash
INVOKE_OR_POETRY = $(shell ! command -v invoke &>/dev/null && echo poetry run) invoke
INVOKE_AND_POETRY = $(shell [ ! -n "${VIRTUAL_ENV}" ] && echo poetry run) invoke
POETRY_TASKS = \
changelog \
check \
check-code-quality \
check-dependencies \
check-docs \
check-types \
combine \
coverage \
docs \
docs-deploy \
docs-regen \
docs-serve \
format \
release \
test
INVOKE_TASKS = \
clean \
setup
.PHONY: help
help:
@$(INVOKE) --list
$(POETRY_TASKS):
@$(INVOKE_AND_POETRY) $@ $(args)
$(INVOKE_TASKS):
@$(INVOKE_OR_POETRY) $@ $(args)