Skip to content

Commit

Permalink
Add make variable for uv run --
Browse files Browse the repository at this point in the history
  • Loading branch information
lithammer committed Aug 22, 2024
1 parent 42bc2fd commit 9183c13
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
VIRTUALENV = .venv
UV_RUN = uv run --

all: build

compile_commands.json: build
bear -- uv run -- python setup.py build_ext -qf
bear -- $(UV_RUN) python setup.py build_ext -qf

build: $(VIRTUALENV)/uv.lock

Expand All @@ -13,13 +14,13 @@ $(VIRTUALENV)/uv.lock: uv.lock pyproject.toml

.PHONY: test
test: build
uv run -- pytest -v
$(UV_RUN) pytest -v

.PHONY: lint
lint: build
uv run -- ruff check --diff $(CURDIR)
uv run -- ruff format --check --diff $(CURDIR)
uv run -- mypy $(CURDIR)
$(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

.PHONY: clean
Expand Down

0 comments on commit 9183c13

Please sign in to comment.