-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (32 loc) · 841 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
# variables
POETRY_RUN := poetry run
PRE_COMMIT_CMD := $(POETRY_RUN) pre-commit
.PHONY: install
install:
poetry install --no-root
.PHONY: update
update:
poetry update
.PHONY: install/pre-commit
install/pre-commit:
$(PRE_COMMIT_CMD) uninstall && $(PRE_COMMIT_CMD) install
.PHONY: lint
lint:
$(PRE_COMMIT_CMD) run --all-files
.PHONY: bumpversion
bumpversion:
$(eval name=$(filter-out $@,$(MAKECMDGOALS)))
$(POETRY_RUN) bumpver update --$(name)
%:
@:
.PHONY: help
help:
@echo "run 'make <target>' where <target> is one of the following:"
@echo ""
@echo " install install dependencies"
@echo " update update dependencies"
@echo ""
@echo " install/pre-commit install pre-commit hooks"
@echo " lint run linters"
@echo " help show this help message"
@echo ""