Documentation for Just, closes #494

Also added 'just init' and fixed a couple of missing pipenv run calls.
This commit is contained in:
Simon Willison 2022-09-26 12:26:31 -07:00
commit c7cad6fc25
2 changed files with 46 additions and 2 deletions

View file

@ -1,6 +1,10 @@
# Run tests and linters
@default: test lint
# Setup project
@init:
pipenv run pip install -e '.[test,docs,mypy,flake8]'
# Run pytest with supplied options
@test *options:
pipenv run pytest {{options}}
@ -10,11 +14,11 @@
pipenv run black . --check
pipenv run flake8
pipenv run mypy sqlite_utils tests
cog --check README.md docs/*.rst
pipenv run cog --check README.md docs/*.rst
# Rebuild docs with cog
@cog:
cog -r README.md docs/*.rst
pipenv run cog -r README.md docs/*.rst
@docs: cog
cd docs && pipenv run make livehtml