-
Notifications
You must be signed in to change notification settings - Fork 469
/
Makefile
72 lines (59 loc) · 1.98 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
help:
@echo "Usage: make <target>"
@echo " check run pre-commit and tests"
@echo " coverage identify code not covered with 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 " tox run tox (in parallel)"
check:
make l10n
make pre-commit
make doc
make test
clean:
find . -name *.mo -delete
find . -name *.pyc -delete
rm -rf .mypy_cache/*
rm -rf .pytest_cache/*
rm -rf dist/*
rm -rf docs/build/*
rm -rf docs/source/_autosummary/*
coverage:
pytest --cov=. --cov-config=pyproject.toml --cov-report term-missing --dist loadscope --no-cov-on-fail --numprocesses auto
doc:
sphinx-build -E -T -W -b html -D language=en -j auto -q docs/source docs/build
l10n:
scripts/l10n/generate_po_files.py >/dev/null 2>&1
scripts/l10n/generate_mo_files.py
package:
scripts/l10n/generate_mo_files.py
python -m build
pre-commit:
pre-commit run --all-files
release-notes:
@scripts/generate_release_notes.py
sbom:
@python -m cyclonedx_py requirements requirements/runtime.txt
setup:
pip install --upgrade pip
pip install --requirement requirements/dev.txt
pip install --requirement requirements/docs.txt
pip install --requirement requirements/runtime.txt
pip install --requirement requirements/tests.txt
pre-commit install --hook-type pre-commit
pre-commit install --hook-type pre-push
make l10n
make package
snapshot:
scripts/l10n/generate_mo_files.py
scripts/generate_snapshots.py
test:
scripts/l10n/generate_mo_files.py
pytest --cov=. --cov-config=pyproject.toml --cov-report term --cov-report xml --durations 10 --durations-min=0.75 --dist loadscope --no-cov-on-fail --numprocesses auto
tox:
tox --parallel auto