# Add any tasks that are not dependent on files in the .PHONY list
.PHONY: clean sync test lint ci_unit_lint

clean:
	rm -rf .venv dist .eggs build pythonfeatures.egg-info .cache .pytest_cache .coverage coverage.xml
	find . | grep -E '__pycache__|\.pyc|\.pyo$\' | xargs rm -rf

sync:
	uv sync

test: sync
	uv run pytest tests

lint: sync
	uv run ruff check pythonfeatures tests

ci_unit_lint:
	docker compose run --rm --build lint-and-test
