-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) · 1.08 KB
/
Makefile
File metadata and controls
51 lines (40 loc) · 1.08 KB
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
50
51
# variables
POETRY_RUN := poetry run
PRE_COMMIT_CMD := $(POETRY_RUN) pre-commit
install:
poetry install
update:
poetry update
build:
poetry build
publish:
poetry publish
test:
$(POETRY_RUN) pytest
install/pre-commit:
$(PRE_COMMIT_CMD) uninstall && $(PRE_COMMIT_CMD) install
lint:
$(PRE_COMMIT_CMD) run --all-files
coverage:
$(POETRY_RUN) pytest --cov ./mermaid --cov-report=xml
bumpversion:
$(eval name=$(filter-out $@,$(MAKECMDGOALS)))
$(POETRY_RUN) bumpver update --$(name)
%:
@:
help:
@echo "run 'make <target>' where <target> is one of the following:"
@echo ""
@echo " install install dependencies"
@echo " update update dependencies"
@echo " build build package"
@echo " publish publish package"
@echo ""
@echo " test run tests"
@echo " install/pre-commit install pre-commit hooks"
@echo " lint run linters"
@echo " coverage run tests with coverage"
@echo ""
@echo " bumpversion bump version"
@echo " help show this help message"
@echo ""