forked from IntegroLabs/hicdex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (41 loc) · 822 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
50
51
52
53
54
55
.ONESHELL:
.PHONY: docs
.DEFAULT_GOAL: all
DEV=1
PLUGINS=""
TAG=latest
all: install lint test cover
lint: isort black flake mypy
debug:
pip install . --force --no-deps
install:
poetry install \
`if [ -n "${PLUGINS}" ]; then for i in ${PLUGINS}; do echo "-E $$i "; done; fi` \
`if [ "${DEV}" = "0" ]; then echo "--no-dev"; fi`
isort:
poetry run isort src
black:
poetry run black src
flake:
poetry run flakehell lint src
mypy:
poetry run mypy src
cover:
poetry run diff-cover coverage.xml
build:
poetry build
image:
docker build . -t dipdup:${TAG}
docker build . -t dipdup:${TAG}-pytezos --build-arg PLUGINS=pytezos
release-patch:
bumpversion patch
git push --tags
git push
release-minor:
bumpversion minor
git push --tags
git push
release-major:
bumpversion major
git push --tags
git push