Skip to content

Commit

Permalink
Use uv run
Browse files Browse the repository at this point in the history
  • Loading branch information
ayalash committed Sep 27, 2024
1 parent d4d4a9b commit 70cf5fa
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 70cf5fa

Please sign in to comment.