-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 959 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
#* Variables
SHELL := /usr/bin/env bash
PYTHON := python
#* Poetry
.PHONY: poetry-download
poetry-download:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | POETRY_HOME=$(HOME)/.poetry $(PYTHON) -
.PHONY: poetry-remove
poetry-remove:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/install-poetry.py | POETRY_HOME=$(HOME)/.poetry $(PYTHON) - --uninstall
#* Installation
.PHONY: install
install:
poetry install
.PHONY: pre-commit-install
pre-commit-install:
poetry run pre-commit install
.PHONY: pre-commit-run
pre-commit-run:
poetry run pre-commit run --all-files
.PHONY: black
black:
poetry run black .
.PHONY: isort
isort:
poetry run isort .
.PHONY: tests
tests:
poetry run pytest
.PHONY: coverage
coverage:
poetry run coverage run -m pytest
poetry run coverage report -m
.PHONY: coverage-html
coverage-html:
poetry run coverage run -m pytest
poetry run coverage html