From b5a12a2b0ff1394a527f408503c6a7a0b9418250 Mon Sep 17 00:00:00 2001 From: adRn-s Date: Wed, 16 Oct 2024 13:43:36 +0200 Subject: [PATCH] uv is great --- Makefile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index a24465397..a5e3ce430 100644 --- a/Makefile +++ b/Makefile @@ -311,12 +311,18 @@ get-pin: @docker compose logs parkour2-django | grep PIN | cut -d':' -f2 | uniq env-setup-dev: - @env python3 -m venv env_dev && \ - source ./env_dev/bin/activate && \ - env python3 -m pip install --upgrade pip && \ - pip install djlint pre-commit uv - @deactivate - # @pip install aider-chat[help] --extra-index-url https://download.pytorch.org/whl/cpu + @echo "First, install uv: https://docs.astral.sh/uv/getting-started/installation/" + @echo "$ uv python install 3.12" + @echo "$ echo ruff black djlint | xargs -n1 uv tool install --python 3.12" + @echo "$ uv tool install --python 3.12 pre-commit --with pre-commit-uv" + +env-setup-dev-old: + # @env python3 -m venv env_dev && \ + # source ./env_dev/bin/activate && \ + # env python3 -m pip install --upgrade pip && \ + # pip install djlint pre-commit uv \ + # aider-chat[help] --extra-index-url https://download.pytorch.org/whl/cpu + # @deactivate open-pr: @git pull && git push && git pull origin develop