feat: add basic pre commit

Ensure a check has a corresponding test
This commit is contained in:
Damien Cavagnini
2025-06-18 11:15:06 +02:00
parent d36436d5c9
commit 02f7e3699d
2 changed files with 31 additions and 0 deletions

10
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,10 @@
repos:
- repo: local
hooks:
- id: check_has_test
name: check_has_test.sh
description: Ensure a check has a corresponding test
entry: hooks/check_has_test.sh
language: script
pass_filenames: true
files: "^bin/hardening/"