mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-10 02:24:22 +02:00
Documentation for Just, closes #494
Also added 'just init' and fixed a couple of missing pipenv run calls.
This commit is contained in:
parent
6b268a1b36
commit
c7cad6fc25
2 changed files with 46 additions and 2 deletions
8
Justfile
8
Justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue