-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
68 lines (54 loc) · 1.24 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
.PHONY: $(MAKECMDGOALS)
changelog:
@.venv/bin/git-changelog -Tio CHANGELOG.md -Bauto -c angular -n pep440
clean:
@rm -rf tests/tmp
cleantests:
@rm -rf tests/tmp/.git
@rm -rf tests/tmp/empty
@rm -rf tests/tmp/CHANGELOG.md
docs:
@.venv/bin/mkdocs serve
docs-deploy:
@.venv/bin/mkdocs gh-deploy
format:
@.venv/bin/ruff format . project/scripts/make
gen generate:
@bash -c 'source tests/helpers.sh && generate ${PWD} tests/tmp'
reset-history: gen
@bash tests/reset_history.sh
release:
@test -n "$(version)" || { echo "error: usage: make release version=x.y.z" >&2; exit 1; }
@git add CHANGELOG.md
@git commit -m "docs: Update changelog for version $(version)"
@git tag $(version)
@git push
@git push --tags
setup:
@uv venv --seed
@uv pip install -r requirements.txt
test: cleantests
@bash tests/test_filenames.sh
@bash tests/test_project.sh
@.venv/bin/python tests/test_licenses.py
wait-ci:
@bash tests/wait_ci.sh
DUTIES = \
test-changelog \
test-check \
test-check-api \
test-check-docs \
test-check-quality \
test-check-types \
test-clean \
test-coverage \
test-docs \
test-docs-deploy \
test-format \
test-help \
test-lock \
test-release \
test-setup \
test-test
$(DUTIES):
@cd tests/tmp && make $(subst test-,,$@)