#!/bin/bash # Bootstrap script to install pre-commit and set up git hooks set -e if ! command -v pre-commit >/dev/null 2>&1; then echo "pre-commit not found, installing via pip..." pip3 install pre-commit else echo "pre-commit already installed." fi pre-commit install echo "pre-commit hooks installed!"