.PHONY: test lint analyze build clean

test:
	PYTHONPATH=src python -m unittest discover -s tests -v

lint:
	PYTHONPATH=src python -m cardforge lint --root .

analyze:
	PYTHONPATH=src python -m cardforge analyze --root .

build:
	python -m pip install --upgrade build twine
	python -m build

twine-check:
	python -m twine check dist/*

clean:
	rm -rf build dist src/*.egg-info .pytest_cache .mypy_cache .ruff_cache
	find . -type d -name __pycache__ -prune -exec rm -rf {} +
