Skip to content

Commit

Permalink
fix: uv to install dev dependencies by default
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Dec 4, 2024
1 parent 5441a04 commit c6488d6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ install:
uv venv --python 3.12

@echo "➡️ Syncing dependencies..."
uv sync
uv sync --extra dev

upgrade:
@echo "➡️ Updating Git submodules..."
Expand All @@ -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..."
Expand All @@ -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 \
Expand Down

0 comments on commit c6488d6

Please sign in to comment.