.PHONY: install dev build publish clean test

install:
	pip install -e .

dev:
	pip install -e ".[dev]"

build:
	python -m build

publish: build
	python -m twine upload dist/*

publish-test: build
	python -m twine upload --repository testpypi dist/*

clean:
	rm -rf build dist *.egg-info
	find . -type d -name __pycache__ -exec rm -rf {} +
	find . -type f -name "*.pyc" -delete

test:
	pytest tests/

format:
	black mcpgw.py
	isort mcpgw.py

lint:
	flake8 mcpgw.py
	mypy mcpgw.py
