forked from flyteorg/flytesnacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 935 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
export REPOSITORY=flytesnacks
include boilerplate/flyte/end2end/Makefile
.SILENT:
define PIP_COMPILE
pip-compile $(1) ${PIP_ARGS} --upgrade --verbose --resolver=backtracking
endef
install-piptools:
pip install pip-tools
dev-requirements.txt: export CUSTOM_COMPILE_COMMAND := $(MAKE) dev-requirements.txt
dev-requirements.txt: dev-requirements.in install-piptools
$(call PIP_COMPILE,dev-requirements.in)
.PHONY: dev-requirements
dev-requirements: dev-requirements.txt
docs-requirements.txt: export CUSTOM_COMPILE_COMMAND := $(MAKE) docs-requirements.txt
docs-requirements.txt: docs-requirements.in install-piptools
$(call PIP_COMPILE,docs-requirements.in)
.PHONY: docs-requirements
docs-requirements: docs-requirements.txt
.PHONY: fmt
fmt: ## Format code with ruff
pre-commit run ruff --all-files || true
pre-commit run ruff-format --all-files || true
.PHONY: update_boilerplate
update_boilerplate:
@boilerplate/update.sh