#!/bin/bash
# Set error handling, fail on any error during script execution
set -euo pipefail

# Check if we're running inside the dev container
if [ "${IN_CONTAINER:-}" = "false" ]; then
	# Outside dev container
	echo "Please commit your changes within the dev container."
	exit 1
fi

# Run pre-commit hooks
pre-commit run
