-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.14 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
52
53
test:
hatch test --cover --all --randomize
#test-ci:
#pdm run pytest -rA tests --cov=src --cov-report term-missing --cov-report=xml --asyncio-mode=auto
test-py:
hatch test -i python="$(v)" --cover --randomize
lint:
pdm run pre-commit install
pdm run pre-commit run --all-files
lint-ci:
pre-commit install && pre-commit run --color=always --all-files
deps:
pdm install
build:
rm -r -f dist && pdm run hatch build
hatch-env-prune:
pdm run hatch env prune
docs-server:
rm -rf docs/build
pdm run sphinx-autobuild docs docs/build
build-docs:
rm -rf docs/build/* && rm -rf docs/build/{*,.*}
pdm run sphinx-build docs docs/build
# https://pdm-project.org/latest/usage/dependency/#select-a-subset-of-dependency-groups-to-install
docs-deps:
pdm install -G docs
# example: make tag v="v3.9.2", TAG MUST INCLUDE v
release:
git add . && git commit -m "Bump version" && git push --force
git tag -a "v$(hatch version)" -m "v$(hatch version)"
git push --force origin "$(git describe --tags $(git rev-list --tags --max-count=1))"
release-patch:
hatch version patch
make release
release-minor:
hatch version minor
make release
mypy:
pdm run mypy src