From 270335dda76909e53cafd805859661bfc1412d20 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 11 Dec 2025 15:20:47 -0800 Subject: [PATCH] Try different pip install pattern --- .github/workflows/test.yml | 2 +- .readthedocs.yaml | 2 +- Justfile | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 50abf2a..763c6ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: cache-dependency-path: pyproject.toml - name: Install dependencies run: | - pip install --group dev + pip install . --group dev - name: Optionally install numpy if: matrix.numpy == 1 run: pip install numpy diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e60586f..08c2f81 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -10,7 +10,7 @@ build: jobs: install: - pip install --upgrade pip - - pip install --group docs + - pip install . --group docs formats: - pdf diff --git a/Justfile b/Justfile index 1d3f6c9..f4f0e7f 100644 --- a/Justfile +++ b/Justfile @@ -3,30 +3,30 @@ # Run pytest with supplied options @test *options: - just run pytest {{options}} + uv run pytest {{options}} @run *options: - uv run --isolated --with-editable '.[test,mypy,flake8,docs]' -- {{options}} + uv run -- {{options}} # Run linters: black, flake8, mypy, cog @lint: just run black . --check - just run flake8 - just run mypy sqlite_utils tests - just run cog --check README.md docs/*.rst - just run codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt + uv run flake8 + uv run mypy sqlite_utils tests + uv run cog --check README.md docs/*.rst + uv run --group docs codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt # Rebuild docs with cog @cog: - just run cog -r README.md docs/*.rst + uv run --group docs cog -r README.md docs/*.rst # Serve live docs on localhost:8000 @docs: cog #!/usr/bin/env bash cd docs - uv run --isolated --with-editable '../.[test,docs]' make livehtml + uv run --group docs make livehtml # Apply Black @black: - just run black . + uv run black .