-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (27 loc) · 920 Bytes
/
Makefile
File metadata and controls
40 lines (27 loc) · 920 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
.PHONY: sync install format format-check lint mypy pyright test build serve-docs deploy-docs check
UV_ENV := env -i PATH="$(PATH)" HOME="$(HOME)"
UV := $(UV_ENV) uv --no-config
UV_LOCK_ARGS := --locked --default-index https://pypi.org/simple
sync:
$(UV) sync $(UV_LOCK_ARGS) --all-extras --all-packages --group dev
install: sync
format:
$(UV) run $(UV_LOCK_ARGS) ruff format
$(UV) run $(UV_LOCK_ARGS) ruff check --fix
format-check:
$(UV) run $(UV_LOCK_ARGS) ruff format --check
lint:
$(UV) run $(UV_LOCK_ARGS) ruff check
mypy:
$(UV) run $(UV_LOCK_ARGS) mypy .
pyright:
$(UV) run $(UV_LOCK_ARGS) pyright
test:
$(UV_ENV) PYTHONPATH=. uv --no-config run $(UV_LOCK_ARGS) pytest
build:
$(UV) build --default-index https://pypi.org/simple
serve-docs:
$(UV) run $(UV_LOCK_ARGS) mkdocs serve
deploy-docs:
$(UV) run $(UV_LOCK_ARGS) mkdocs gh-deploy --force --verbose
check: format-check lint pyright test