sources = src/dnstree

.PHONY: test format lint unittest check-manifest clean

test:
	@$(MAKE) format
	@$(MAKE) lint
	@$(MAKE) unittest
	@$(MAKE) check-manifest

format:
	ruff check --select I --fix $(sources) tests
	ruff format $(sources) tests

lint:
	ruff check $(sources) tests

unittest:
#	pytest $(sources) tests
	coverage run
	coverage report

check-manifest:
	check-manifest

clean:
	rm -rf -- src/*.egg-info
	rm -rf -- ./.tox ./dist ./build ./site
