sqlite-utils/Justfile

32 lines
658 B
Makefile
Raw Normal View History

# Run tests and linters
@default: test lint
# Run pytest with supplied options
@test *options:
uv run pytest {{options}}
2025-11-23 19:41:57 -08:00
@run *options:
uv run -- {{options}}
# Run linters: black, flake8, mypy, cog
@lint:
2025-11-23 19:41:57 -08:00
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
2022-06-21 12:24:23 -07:00
# Rebuild docs with cog
2022-06-21 12:24:23 -07:00
@cog:
uv run --group docs cog -r README.md docs/*.rst
# Serve live docs on localhost:8000
@docs: cog
2025-11-23 19:41:57 -08:00
#!/usr/bin/env bash
cd docs
uv run --group docs make livehtml
2025-11-23 19:41:57 -08:00
# Apply Black
@black:
uv run black .