-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (47 loc) · 1001 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
54
55
56
57
58
59
60
61
62
63
64
65
.PHONY: nox tests docs mypy list-sessions coverage
# Disable keyring, see 1.2.0 bug:
# https://github.com/python-poetry/poetry/issues/1917
POETRY=PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring poetry
nox:
nox -r
tests:
nox -rxs tests
mypy:
nox -rxs mypy
typeguard:
nox -rxs typeguard
docs:
nox -rxs docs
build:
$(POETRY) build
# NOTE You will need your own local keyring to publish an update to PyPi.
publish:
poetry publish
run:
$(POETRY) run yarm
update:
$(POETRY) update
list-sessions:
nox --list-sessions
# https://cookiecutter-hypermodern-python.readthedocs.io/en/2022.6.3.post1/guide.html#version-constraints
lock:
$(POETRY) lock --no-update
coverage:
coverage html
xdg-open htmlcov/index.html
3.10:
pyenv local 3.10.5
$(POETRY) env use 3.10.5
3.9:
pyenv local 3.9.12
$(POETRY) env use 3.9.12
3.7:
pyenv local 3.7.13
$(POETRY) env use 3.7.13
jupyter:
$(POETRY) run jupyter notebook
# List pull requests.
# To merge, do:
# gh-merge NUM
pr:
gh pr list