-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
73 lines (58 loc) · 1.5 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
65
66
67
68
69
70
71
72
.PHONY: test
test:
poetry run pytest
.PHONY: rufflintfix
rufflintfix:
poetry run ruff check . --fix
.PHONY: rufflintcheck
rufflintcheck:
@echo "Checking ruff..."
poetry run ruff check .
.PHONY: rufflintwatch
rufflintwatch:
poetry run ruff check . --fix --watch
.PHONY: ruffformatfix
ruffformatfix:
poetry run ruff format . --preview
.PHONY: ruffformatcheck
ruffformatcheck:
poetry run ruff format . --check --preview
.PHONY: poetrycheck
poetrycheck:
poetry check --lock
.PHONY: pyformatcheck
pyformatcheck: poetrycheck rufflintcheck ruffformatcheck
.PHONY: lint
lint: pyformatcheck
.PHONY: autofmt
autofmt: rufflintfix ruffformatfix
.PHONY: patchrelease
patchrelease:
poetry version patch
git add pyproject.toml
git commit -m "Release version $$(poetry version --short)"
git tag $$(poetry version --short)
.PHONY: minorrelease
minorrelease:
poetry version minor
git add pyproject.toml
git commit -m "Release version $$(poetry version --short)"
git tag $$(poetry version --short)
.PHONY: preminor
preminor:
poetry version preminor
git add pyproject.toml
git commit -m "Release version $$(poetry version --short)"
git tag $$(poetry version --short)
.PHONY: prepatch
prepatch:
poetry version prepatch
git add pyproject.toml
git commit -m "Release version $$(poetry version --short)"
git tag $$(poetry version --short)
.PHONY: prerelease
prerelease:
poetry version prerelease
git add pyproject.toml
git commit -m "Release version $$(poetry version --short)"
git tag $$(poetry version --short)