Add pre-commit to yadm

This commit is contained in:
Tobias Reisinger 2024-10-23 14:47:25 +02:00
parent 0b69eff54b
commit b8b0af0881
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 10 additions and 0 deletions

1
.bin/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
host-mode

4
.bin/pre-commit-yadm Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env sh
export GIT_DIR="$HOME/.local/share/yadm/repo.git"
pre-commit $@ -c .config/pre-commit-config.yaml

View file

@ -0,0 +1,5 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.20.1
hooks:
- id: gitleaks