From c6488d6c1576285c941bb2a4c77732be1114e0b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9mence=20Lesn=C3=A9?= Date: Wed, 4 Dec 2024 23:12:57 +0100 Subject: [PATCH] fix: uv to install dev dependencies by default --- Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 30334678..e088cb6d 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ install: uv venv --python 3.12 @echo "➡️ Syncing dependencies..." - uv sync + uv sync --extra dev upgrade: @echo "➡️ Updating Git submodules..." @@ -71,22 +71,22 @@ upgrade: test: @echo "➡️ Test code smells (Ruff)..." - ruff check --select I,PL,RUF,UP,ASYNC,A,DTZ,T20,ARG,PERF --ignore RUF012 + uv run ruff check --select I,PL,RUF,UP,ASYNC,A,DTZ,T20,ARG,PERF --ignore RUF012 @echo "➡️ Test types (Pyright)..." - pyright . + uv run pyright . @echo "➡️ Unit tests (Pytest)..." - PUBLIC_DOMAIN=dummy pytest \ + PUBLIC_DOMAIN=dummy uv run pytest \ --junit-xml=test-reports/$(version_full).xml \ tests/*.py lint: @echo "➡️ Fix with formatter..." - ruff format + uv run ruff format @echo "➡️ Lint with linter..." - ruff check --select I,PL,RUF,UP,ASYNC,A,DTZ,T20,ARG,PERF --ignore RUF012 --fix + uv run ruff check --select I,PL,RUF,UP,ASYNC,A,DTZ,T20,ARG,PERF --ignore RUF012 --fix tunnel: @echo "➡️ Creating tunnel..." @@ -99,7 +99,7 @@ tunnel: devtunnel host $(tunnel_name) dev: - VERSION=$(version_full) PUBLIC_DOMAIN=$(tunnel_url) gunicorn app.main:api \ + VERSION=$(version_full) PUBLIC_DOMAIN=$(tunnel_url) uv run gunicorn app.main:api \ --access-logfile - \ --bind 0.0.0.0:8080 \ --proxy-protocol \