.PHONY: test lint validate build clean publish-test

test:        ## run the unit tests
	PYTHONPATH=. python3 tests/test_analyzer.py

lint:        ## dogfood: scan the example app (report only)
	PYTHONPATH=. python3 -m tokenlint.cli examples/ --fail-on never

validate:    ## validate the Claude Code plugin manifests & structure
	python3 scripts/validate_plugin.py

build:       ## build sdist + wheel into dist/
	python3 -m build

publish-test:## upload to TestPyPI (needs twine + a TestPyPI token)
	python3 -m twine upload --repository testpypi dist/*

clean:
	rm -rf dist build *.egg-info **/__pycache__ .pytest_cache
