dependency-groups.dev and uv in docs (#691)

* dependency-groups.dev and switch to uv in docs
* Separate dependency group for docs
This commit is contained in:
Simon Willison 2025-12-11 15:32:00 -08:00 committed by GitHub
commit 29d84bc95d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 59 additions and 85 deletions

View file

@ -21,7 +21,7 @@ jobs:
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install -e '.[test]'
pip install --group dev
- name: Run tests
run: |
pytest

View file

@ -15,7 +15,7 @@ jobs:
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install -e '.[docs]'
pip install . --group docs
- name: Check spelling
run: |
codespell docs/*.rst --ignore-words docs/codespell-ignore-words.txt

View file

@ -24,7 +24,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[test]
python -m pip install . --group dev
python -m pip install pytest-cov
- name: Run tests
run: |-

View file

@ -34,7 +34,7 @@ jobs:
- run: python3 -c "import sqlite3; print(sqlite3.sqlite_version)"
- name: Install dependencies
run: |
pip install -e '.[test]'
pip install . --group dev
pip freeze
- name: Run tests
run: |

View file

@ -24,9 +24,7 @@ jobs:
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
pip install -e '.[test,mypy,flake8]'
- name: Optionally install tui dependencies
run: pip install -e '.[tui]'
pip install . --group dev
- name: Optionally install numpy
if: matrix.numpy == 1
run: pip install numpy