install-git-hooks.sh 126 B

123456789
  1. #!/bin/bash
  2. set -eu
  3. PRE_COMMIT=.git/hooks/pre-commit
  4. cat <<-EOF > ${PRE_COMMIT}
  5. rye fmt --check
  6. EOF
  7. chmod +x ${PRE_COMMIT}