mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-08-01 06:54:22 +02:00
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:
parent
5a7f522980
commit
29d84bc95d
10 changed files with 59 additions and 85 deletions
18
Justfile
18
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 .
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue