sqlite-utils/Justfile
Simon Willison 2f599fc7c6 Run ty in just lint, matching CI
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 15:38:05 -07:00

33 lines
693 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, ty, cog
@lint:
just run black . --check
uv run flake8
uv run mypy sqlite_utils tests
uv run ty check sqlite_utils
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 .