SHELL=/bin/bash
LINT_PATHS=jaxfin/ tests/

build:
	python -m build

pytest:
	python -m pytest --no-header -vv --html=test_report.html --self-contained-html

pylint:
	pylint jaxfin --output-format=text:pylint_res.txt,colorized

type: 
	mypy ${LINT_PATHS}

lint:
	ruff check jaxfin --output-format=full

lint-complete: lint pylint

format:
	isort ${LINT_PATHS}
	black ${LINT_PATHS}

check-codestyle:
	black ${LINT_PATHS} --check

commit-checks: format type lint

release: 
	build
	twine upload dist/*

test-release: 
	build
	twine upload dist/* -r testpypi

.PHONY: clean spelling doc lint format check-codestyle commit-checks pylint