.PHONY: install test lint format check \
       test-logs-http-input test-logs-http-output test-metrics-http \
       test-logs-redis test-logs-db test-logs-exceptions

install:
	uv sync --all-extras

test:
	pytest --cov=road24_sdk -v

lint:
	ruff check road24_sdk/ tests/

format:
	ruff format road24_sdk/ tests/

check: lint test

push_to_pypi:
	rm -rf dist/
	python -m build
	python -m twine upload dist/*

# --- Manual test scripts (no server needed) ---

test-logs-http-input:
	python commands/test_logs_http_input.py

test-logs-http-output:
	python commands/test_logs_http_output.py

test-metrics-http:
	python commands/test_metrics_http.py

test-logs-redis:
	python commands/test_logs_redis.py

test-logs-db:
	python commands/test_logs_db.py

test-logs-exceptions:
	python commands/test_logs_exceptions.py
