-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (29 loc) · 722 Bytes
/
Makefile
File metadata and controls
43 lines (29 loc) · 722 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
ARGS ?= $(filter-out $@,$(MAKECMDGOALS))
%:
@:
PY_ARGS := $(or $(filter %.py,$(ARGS)),fastapi_storages)
setup:
uv sync --all-groups
test:
uv run coverage run -m pytest $(ARGS)
cov:
uv run coverage report --show-missing --skip-covered --fail-under=99
uv run coverage xml
lint:
uv run ruff check $(PY_ARGS)
uv run ruff format --check $(PY_ARGS)
uv run mypy $(PY_ARGS)
format:
uv run ruff format $(PY_ARGS)
uv run ruff check --fix $(PY_ARGS)
docs-build:
uv run mkdocs build
docs-serve:
uv run mkdocs serve --dev-addr localhost:8080
docs-deploy:
uv run mkdocs gh-deploy --force
build:
uv build
publish:
uv publish
.PHONY: setup test cov lint format docs-build docs-serve docs-deploy build publish