.PHONY: install test test-one lint server verify clean

install:
	bash setup_venv.sh

test:
	source venv/bin/activate && pytest tests/ -v

test-one:
	source venv/bin/activate && pytest $(FILE) -v

lint:
	source venv/bin/activate && ruff check src/

server:
	source venv/bin/activate && uvicorn info_privacy.api.main:app --host 0.0.0.0 --port 8000 --reload

verify:
	source venv/bin/activate && python scripts/verify.py

clean:
	find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null; \
	rm -rf tmp/*.pdf tmp/*.png tmp/*.docx 2>/dev/null; true
