-
Notifications
You must be signed in to change notification settings - Fork 335
/
Makefile
49 lines (39 loc) · 961 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
45
46
47
48
49
LINT_CHECK=0
.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " release to create a release"
@echo " docs to build documentations"
@echo " serve-docs to serve documentations"
@echo " clean to remove build artifacts"
@echo " format to format code using autoformatters"
@echo " lint to check code using autoformatters"
@echo " test to run tests"
@echo " all run pipeline format -> test -> docs -> clean"
.PHONY: all
all: format test docs clean
.PHONY: format
format:
CHECK=$(LINT_CHECK) bash scripts/format.sh
.PHONY: docs
docs:
bash scripts/docs.sh
.PHONY: serve-docs
serve-docs:
bash scripts/serve-docs.sh
.PHONY: clean
clean:
bash scripts/clean.sh
.PHONY: release
release:
bash scripts/release.sh
.PHONY: lint
lint: LINT_CHECK=1
lint: format
@echo 'Lint finished'
.PHONY: test
test:
bash scripts/test.sh
.PHONY: update-deps
update-deps:
poetry update