Add documentation strings to Justfile, ref #446

This commit is contained in:
Simon Willison 2022-06-21 12:28:01 -07:00
commit ba8cf54908

View file

@ -1,16 +1,21 @@
# Run tests and linters
@default: test lint
# Run pytest with supplied options
@test *options:
pipenv run pytest {{options}}
# Run linters: black, flake8, mypy, cog
@lint:
pipenv run black . --check
pipenv run flake8
pipenv run mypy sqlite_utils tests
cog --check README.md docs/*.rst
# Rebuild docs with cog
@cog:
cog -r README.md docs/*.rst
# Apply Black
@black:
pipenv run black .