test:
	uv run pytest -vv --cov=src/cantrip --integration-cover tests/

integration:
	# BigQuery
	uv run pytest -vv --with-integration --with-slow-integration tests/implementations/bigquery_integration_test.py tests/implementations/bigquery_spatial_integration_test.py
	# Snowflake
	uv run pytest -vv --with-integration --with-slow-integration tests/implementations/snowflake_integration_test.py tests/implementations/snowflake_spatial_integration_test.py
	# PostgreSQL
	uv run pytest -vv --with-integration --with-slow-integration tests/implementations/postgres_integration_test.py tests/implementations/postgres_spatial_integration_test.py
	# SQLite
	uv run pytest -vv --with-integration --with-slow-integration tests/implementations/sqlite_spatial_integration_test.py
	# DuckDB
	uv run pytest -vv --with-integration --with-slow-integration tests/implementations/duckdb_integration_test.py tests/implementations/duckdb_spatial_integration_test.py

check:
	prek -a

pr: test check
