-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (51 loc) · 1.13 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
54
55
56
57
58
59
60
61
62
63
64
#
# deps
#
.PHONY: deps-sync # sync dependencies
deps-sync:
poetry install --sync
.PHONY: deps-show # build source and wheel
deps-show:
poetry show
#
# publishing
#
.PHONY: package-publish # publish to pypi
package-publish:
poetry publish
.PHONY: package-publish-test # publish to test.pypi
package-publish-test:
poetry publish -r test-pypi
.PHONY: package-version-bump-patch # bump patch version
package-version-bump-patch:
poetry version patch
.PHONY: package-version-bump-prerelease # bump prerelease version
package-version-bump-prerelease:
poetry version prerelease
.PHONY: package-build # build source and wheel
package-build:
poetry build
#
# tests
#
.PHONY: spin # run all checks
spin: typecheck lint test-quiet
.PHONY: test # run test
test:
pytest
# mypy won't report anything if you haven't type hinted/annotated your code
.PHONY: typecheck # run mypy
typecheck:
mypy .
.PHONY: lint # run linter
lint:
ruff .
# isort . --check-only
black . --check
.PHONY: test-quiet # run test quietly
test-quiet:
pytest -q
.PHONY: test-dry-run # dry-run test, just get test names
test-dry-run:
pytest --collect-only
include Makefile.common