-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (19 loc) · 521 Bytes
/
Makefile
File metadata and controls
27 lines (19 loc) · 521 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
VIRTUALENV = .venv
.PHONY: all build clean lint test
all: build
compile_commands.json: build
bear -- uv run -- python setup.py build_ext -qf
build: $(VIRTUALENV)/uv.lock
uv pip install -e file://$(CURDIR)
$(VIRTUALENV)/uv.lock: uv.lock pyproject.toml
uv sync
@cp $< $@
test: build
uv run -- pytest -v
lint: build
uv run -- ruff check --diff $(CURDIR)
uv run -- ruff format --check --diff $(CURDIR)
uv run -- mypy $(CURDIR)
clang-format --dry-run --Werror --style=file src/jump/*.c
clean:
git clean -Xdf