-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 1.04 KB
/
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
# ===================================================================
# Development. Start Work
# ===================================================================
#* Poetry
.PHONY: poetry-download
poetry-download:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | $(PYTHON) -
.PHONY: poetry-remove
poetry-remove:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | $(PYTHON) - --uninstall
.PHONY: dev-init
dev-init: poetry-install tools-install
.PHONY: poetry-install
poetry-install:
poetry install --no-interaction
.PHONY: tools-install
tools-install:
poetry run pre-commit install
poetry run pre-commit install --hook-type commit-msg
poetry run nbdime config-git --enable
# ===================================================================
# Testing
# ===================================================================
PYTEST_USE_COLOR ?= yes
PYTEST_OPTS ?= -v --durations=10 --color=${PYTEST_USE_COLOR}
.PHONY: tests
tests:
poetry run pytest ${PYTEST_OPTS} tests