-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (31 loc) · 839 Bytes
/
Makefile
File metadata and controls
45 lines (31 loc) · 839 Bytes
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
SHELL:=/bin/bash
PYTHON ?= python
UV ?= uv
.PHONY: all setup build test examples coverage fmt check docs open-docs bench
all: setup pep8 mypy docs test examples
setup:
$(UV) sync
$(UV) run pip list
$(UV) run pre-commit install
setup-bench:
pushd bench && $(UV) sync && popd
build:
$(UV) build
test:
$(UV) run pytest tests --doctest-modules serde -v -nauto
examples:
$(UV) run $(PYTHON) examples/runner.py
coverage:
$(UV) run pytest tests --doctest-modules serde -v -nauto --cov=serde --cov-report term --cov-report xml --cov-report html
fmt:
$(UV) run pre-commit run black -a
check:
$(UV) run pre-commit run -a
docs:
$(UV) run mkdocs build
docs-serve:
$(UV) run mkdocs serve
docs-deploy:
$(UV) run mike deploy --push --update-aliases $(VERSION) latest
bench:
pushd bench && $(UV) run $(PYTHON) bench.py && popd