-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (23 loc) · 768 Bytes
/
Makefile
File metadata and controls
30 lines (23 loc) · 768 Bytes
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
#* Variables
OS := $(shell uname -o)
# ===================================================================
# Development. Start Work
# ===================================================================
POETRY_VERSION ?= 1.2.0
#* Poetry
.PHONY: poetry-install
poetry-install:
curl -sSL https://install.python-poetry.org | $(PYTHON) - --version ${POETRY_VERSION}
.PHONY: poetry-remove
poetry-remove:
curl -sSL https://install.python-poetry.org | $(PYTHON) - --uninstall
#* Environment control
.PHONY: env-init
env-init: env-install-deps env-tools-install
.PHONY: env-install-deps
env-install-deps:
poetry install --no-interaction
.PHONY: env-tools-install
env-tools-install:
poetry run pre-commit install
poetry run pre-commit install --hook-type commit-msg