.PHONY: test style

check_dirs := tests tools/convert_checkpoint

help: ## this help
	@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n  make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf "  \033[36m%-22s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

test: ## run tests
	pytest tests

style: ## checks for code style and applies formatting
	black $(check_dirs)
	isort $(check_dirs)
