-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 760 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
.PHONY: dev lint format type test cov live build all
# Set up (or repair) the local dev environment. On macOS, uv can leave the
# UF_HIDDEN flag on the venv's *.pth files; CPython's site module silently
# skips hidden .pth files, which breaks `uv run python -c "import ..."`.
# Clearing the flag restores ad-hoc imports. Harmless no-op on Linux.
dev:
uv sync
-command -v chflags >/dev/null 2>&1 && chflags nohidden .venv/lib/python*/site-packages/*.pth 2>/dev/null || true
lint:
uv run ruff check .
uv run ruff format --check .
format:
uv run ruff check --fix .
uv run ruff format .
type:
uv run mypy src
test:
uv run pytest
cov:
uv run pytest --cov --cov-report=term-missing
live:
uv run pytest -m live
build:
uv build
all: lint type test