From 70cf5faa0852a8d964c79f499509e365628d80bd Mon Sep 17 00:00:00 2001 From: Ayala Shachar Date: Fri, 27 Sep 2024 11:16:36 +0300 Subject: [PATCH] Use uv run --- Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 78e2ad0..b9fd5e1 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,11 @@ default: test -test: env - .venv/bin/pytest tests +test: + uv run --extra testing pytest tests -lint: env - .venv/bin/ruff check . - .venv/bin/ruff format --check . - -env: .venv/.up-to-date - -.venv/.up-to-date: pyproject.toml Makefile - uv venv .venv - uv pip install -e '.[testing]' - touch $@ +lint: + uv run --extra testing ruff check . + uv run --extra testing ruff format --check . +env: + uv venv