sqlite-utils/Justfile

30 lines
670 B
Makefile
Raw Permalink Normal View History

# 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}}
# Run linters: black, flake8, mypy, cog
@lint:
pipenv run black . --check
pipenv run flake8
pipenv run mypy sqlite_utils tests
pipenv run cog --check README.md docs/*.rst
2023-08-17 19:09:22 -07:00
pipenv 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:
pipenv run cog -r README.md docs/*.rst
# Serve live docs on localhost:8000
@docs: cog
cd docs && pipenv run make livehtml
# Apply Black
@black:
pipenv run black .