source_files = tests/

# Environment

env:
	poetry install --no-root

clean:
	poetry env remove $$(poetry env info --executable)

# Development

test:
	poetry run pytest

lint:
	poetry run ruff check $(source_files)
	poetry run ruff format --check $(source_files)
	poetry run mypy $(source_files)

format:
	poetry run ruff format $(source_files)

# Jenkins

ci_test:
	docker compose up \
		--build \
		--exit-code-from test \
		--remove-orphans \
		test
