format-and-lint:
	pre-commit run --all-files
	blackdoc *.md  --line-length 82

test:
	pytest
	python -m doctest README.md
	python -m doctest matfree/*.py


clean-preview:
	git clean -xdn

clean:
	git clean -xdf


doc-preview:
	python scripts/generate_api_docs.py
	python scripts/readme_to_dev_docs.py
	python scripts/tutorials_to_py_light.py
	mkdocs serve

doc-build:
	python scripts/generate_api_docs.py
	python scripts/readme_to_dev_docs.py
	python scripts/tutorials_to_py_light.py
	mkdocs build
