# Commands used by CI

.PHONY: format lint build test docs

format:
	ruff check --fix
	ruff format

lint:
	ruff check
	ruff format --diff
	numpydoc lint jbpy/*.py
	mypy jbpy

build:
	python -m pip wheel --no-deps . --wheel-dir dist/

test:
	pytest
	python -m doctest README.md

docs:
	python docs/make.py
	zensical build -f docs/zensical.toml --clean
