-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 771 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
export VENV_BINDIR := $(shell dirname $(shell poetry run which python))
export PATH := $(VENV_BINDIR):$(PATH)
SRC_DIR = laika
FORMAT_DIRS = \
$(SRC_DIR) \
features \
tests \
testing_helpers
.PHONY: all \
setup setup-venv setup-hooks \
pre-commit \
format type-check \
test test_unit test_bdd \
release release_upload
all:
setup: setup-venv setup-hooks
setup-venv:
poetry install
setup-hooks:
development/setup-hooks.sh
pre-commit: format-check type-check
format:
black $(FORMAT_DIRS)
format-check:
black --check $(FORMAT_DIRS)
type-check:
mypy $(SRC_DIR)
test: test_unit test_bdd
test_unit:
pytest
test_bdd:
behave
release:
poetry build
release_upload:
@echo "Please run manually (editing as necessary):"
@echo "twine upload -s dist/*"