sqlite-utils/Justfile

32 lines
732 B
Makefile
Raw Permalink Normal View History

# Run tests and linters
@default: test lint
# Run pytest with supplied options
@test *options:
2025-11-23 19:41:57 -08:00
just run pytest {{options}}
@run *options:
uv run --isolated --with-editable '.[test,mypy,flake8,docs]' -- {{options}}
# Run linters: black, flake8, mypy, cog
@lint:
2025-11-23 19:41:57 -08:00
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
2022-06-21 12:24:23 -07:00
# Rebuild docs with cog
2022-06-21 12:24:23 -07:00
@cog:
2025-11-23 19:41:57 -08:00
just run 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 --isolated --with-editable '../.[test,docs]' make livehtml
# Apply Black
@black:
2025-11-23 19:41:57 -08:00
just run black .