-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (28 loc) · 798 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
.PHONY: all
all: lint test
.PHONY: lint
lint: .venv
poetry run mypy synth_a_py tests
poetry run flake8 synth_a_py tests
poetry run isort --check-only --profile black synth_a_py tests
poetry run black --check --diff synth_a_py tests
.PHONY: fmt
fmt: .venv
poetry run isort --profile black synth_a_py tests
poetry run black synth_a_py tests
.PHONY: test
test: .venv
poetry run pytest --verbose --capture=no
.PHONY: publish
publish: dist
poetry publish
.PHONY: dist
dist: dist/synth-a-py-1.6.0.tar.gz dist/synth_a_py-1.6.0-py3-none-any.whl
dist/synth-a-py-1.6.0.tar.gz dist/synth_a_py-1.6.0-py3-none-any.whl: $(shell find synth_a_py -type f -name '*.py')
poetry build
.venv: poetry.lock
poetry install
@touch -c .venv
poetry.lock: pyproject.toml
poetry lock
@touch -c poetry.lock