-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
45 lines (35 loc) · 697 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
#!/usr/bin/env make
.PHONY: dep
dep:
pip install poetry
poetry install
.PHONY: test
test: lint format-check unit
.PHONY: unit
unit:
poetry run py.test -vv
.PHONY: integration
integration:
poetry run molecule test
.PHONY: cov
cov:
poetry run py.test --cov apps --cov molecule_kind --cov-report term-missing --showlocals
.PHONY: lint
lint:
poetry run flake8
.PHONY: format
format:
poetry run black .
poetry run isort .
.PHONY: format-check
format-check:
poetry run black --diff --check .
poetry run isort --check-only --diff .
.PHONY: build-dist
build-dist:
poetry build
.PHONY: dist-publish
dist-publish:
poetry publish --build \
-u $(PYPI_USERNAME) \
-p $(PYPI_PASSWORD)