mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
21 lines
402 B
Makefile
21 lines
402 B
Makefile
# 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 .
|