From 33f1760f4dddefdba402065ccb85e6113b2791fa Mon Sep 17 00:00:00 2001 From: James Date: Thu, 26 Oct 2023 14:31:33 -0700 Subject: [PATCH] pre commit hook --- .pre-commit-config.yaml | 8 ++++++++ script.sh | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100755 script.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..86ef4e1f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: +- repo: local + hooks: + - id: my-check + name: 'My Custom Check' + entry: ./script.sh + language: script + diff --git a/script.sh b/script.sh new file mode 100755 index 00000000..90ed60b2 --- /dev/null +++ b/script.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "All checks passed" +