sqlite-utils/Justfile
Simon Willison 29d84bc95d
dependency-groups.dev and uv in docs (#691)
* dependency-groups.dev and switch to uv in docs
* Separate dependency group for docs
2025-12-11 15:32:00 -08:00

32 lines
658 B
Makefile

# Run tests and linters
@default: test lint
# Run pytest with supplied options
@test *options:
uv run pytest {{options}}
@run *options:
uv run -- {{options}}
# Run linters: black, flake8, mypy, cog
@lint:
just run black . --check
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:
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 --group docs make livehtml
# Apply Black
@black:
uv run black .