-
-
Notifications
You must be signed in to change notification settings - Fork 607
Expand file tree
/
Copy pathMakefile
More file actions
73 lines (58 loc) · 1.95 KB
/
Makefile
File metadata and controls
73 lines (58 loc) · 1.95 KB
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
73
.DEFAULT_GOAL := help
.PHONY: help
help:
@echo "Usage: make <target>"
@echo " archive-links update URLs using Wayback Machine"
@echo " check run pre-commit and tests"
@echo " doc run documentation build process"
@echo " help show summary of available commands"
@echo " l10n update .pot and .po files"
@echo " package build package distribution"
@echo " pre-commit run pre-commit against all files"
@echo " setup setup development environment"
@echo " test run tests (in parallel)"
@echo " upgrade run dependency upgrade"
archive-links:
uv run --no-sync scripts/archive_links.py
check:
make l10n
make pre-commit
make doc
make test
clean:
@for ext in mo pot pyc; do \
find . -type f -name "*.$$ext" -delete; \
done
@rm -rf .mypy_cache .pytest_cache dist
doc:
uv run --no-sync mkdocs build
l10n:
find . -type f -name "*.pot" -delete
uv run --no-sync scripts/l10n/generate_po_files.py 2>/dev/null
uv run --no-sync scripts/l10n/generate_mo_files.py
package:
uv run --no-sync scripts/l10n/generate_mo_files.py
uv build
pre-commit:
uv run --no-sync pre-commit run --all-files
release-notes:
uv run --no-sync scripts/generate_release_notes.py
sbom:
uv tool run --from cyclonedx-bom cyclonedx-py environment "$(uv python find)"
setup:
uv venv --clear --python 3.14
uv sync --all-groups
uv run --no-sync pre-commit install --hook-type pre-commit
uv run --no-sync pre-commit install --hook-type pre-push
make l10n
make package
snapshot:
uv run --no-sync scripts/l10n/generate_mo_files.py
uv run --no-sync scripts/generate_snapshots.py
test:
uv run --no-sync scripts/l10n/generate_mo_files.py
uv run --no-sync pytest --cov=. --cov-config=pyproject.toml --cov-report term-missing --cov-report xml --durations 10 --durations-min=0.75 --dist loadscope --no-cov-on-fail --numprocesses auto
upgrade:
pre-commit autoupdate
uv lock --upgrade
uv sync --all-groups