소스 검색

Add a script to install commit git hooks

jherve 1 년 전
부모
커밋
d120dfd089
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      install-git-hooks.sh

+ 9 - 0
install-git-hooks.sh

@@ -0,0 +1,9 @@
+#!/bin/bash
+set -eu
+
+PRE_COMMIT=.git/hooks/pre-commit
+
+cat <<-EOF > ${PRE_COMMIT}
+	rye fmt --check
+EOF
+chmod +x ${PRE_COMMIT}