feat: justfile
This commit is contained in:
parent
de7c4a69e8
commit
7856d0c3ea
23
justfile
Normal file
23
justfile
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user