Skip to content

Commit

Permalink
fix: resolve uvx when using a git client or IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
lamchau committed Sep 26, 2024
1 parent d7aea4e commit d7fd39f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ integration *FLAGS:
uv run pytest tests -m integration {{FLAGS}}

format:
uvx ruff check . --fix
uvx ruff format .
#!/usr/bin/env bash
UVX_PATH="$(which uvx)"
if [ -z "$UVX_PATH" ]; then
echo "[error]: unable to find uvx"
exit 1
fi
eval "$UVX_PATH ruff format ."
eval "$UVX_PATH ruff check . --fix"


coverage *FLAGS:
uv run coverage run -m pytest tests -m "not integration" {{FLAGS}}
Expand Down

0 comments on commit d7fd39f

Please sign in to comment.