pre commit hook

This commit is contained in:
James 2023-10-26 14:31:33 -07:00
parent 49b91b6b1f
commit 33f1760f4d
2 changed files with 11 additions and 0 deletions

8
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,8 @@
repos:
- repo: local
hooks:
- id: my-check
name: 'My Custom Check'
entry: ./script.sh
language: script

3
script.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
echo "All checks passed"