From 7856d0c3ea1837f976a0f7597b7513765a73ed93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabor=20K=C3=B6rber?= Date: Thu, 23 Jan 2025 16:01:15 +0100 Subject: [PATCH] feat: justfile --- justfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 justfile diff --git a/justfile b/justfile new file mode 100644 index 0000000..a66414a --- /dev/null +++ b/justfile @@ -0,0 +1,23 @@ +# install just to use this justfile: https://github.com/casey/just + +uv_installed := `command -v uv` +uv_install_cmd := "curl -LsSf https://astral.sh/uv/install.sh | sh" + +default: + @just -l + +install-uv: + @# visit https://docs.astral.sh/uv/getting-started/installation/ for more installation options. + @# cargo install --git https://github.com/astral-sh/uv uv + @{{ if uv_installed != "" { "echo uv already installed" } else { "echo installing uv... && " + uv_install_cmd } }} + +install-python: + uv python install + +venv: + uv venv + +install: install-uv install-python venv + +test: + uv run python -m unittest src/django_records/tests.py