build:
	python3 -m build

check:
	mypy govee_led_wez tests
	pylint govee_led_wez tests

fmt:
	black govee_led_wez/*.py tests/*.py
	isort govee_led_wez tests

test:
	pytest

setup:
	pip install build
	pip install flit
	pip install twine
	flit install --deps=develop

publish:
	rm -rf dist
	python3 -m build
	@echo put the token in TWINE_PASSWORD and run 'TWINE_PASSWORD=token make publish'
	python3 -m twine upload -u __token__ dist/* --verbose
