Skip to content

Commit

Permalink
Add justfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Nov 30, 2024
1 parent 17a546e commit d7fcfd0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# use with https://github.com/casey/just

# default recipe
default:
just --list

[private]
@check_uv:
if ! command -v uv &> /dev/null; then \
echo "uv could not be found. Exiting."; \
exit 1; \
fi

# Set up development environment
@bootstrap: check_uv
if test ! -e .venv; then \
uv python install; \
fi
uv sync

# Format
@format: bootstrap
ruff format .
ruff check . --fix

0 comments on commit d7fcfd0

Please sign in to comment.