-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (35 loc) · 1.03 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SHELL := /bin/bash
.PHONY: setup setup-pipenv install install-dev lint test run clean-setup clean-lint all clean
setup: install-dev
pipenv run pre-commit install
pipenv run pre-commit install --hook-type commit-msg
setup-pipenv:
python -m pip install --upgrade pip
pip install pipenv
install:
pipenv sync
install-dev:
pipenv sync --dev
lint:
pipenv run pre-commit run --all-files
test:
pipenv run pytest tests/* --cov-branch --cov=codecov --cov-report=term-missing
report:
pipenv run pytest tests --cov-branch --cov=codecov --cov-report=term-missing --cov-report=json:/tmp/report.json
build:
pipenv run python3 -m build
test-publish:
pipenv run python3 -m twine upload --repository testpypi dist/*
publish:
pipenv run python3 -m twine upload dist/*
run:
pipenv run python run.py
clean-setup:
pipenv run pre-commit uninstall --hook-type commit-msg
pipenv run pre-commit uninstall
pipenv clean
clean-lint:
pipenv run pre-commit clean
pipenv run pre-commit gc
all: setup-pipenv setup lint
clean: clean-lint clean-setup