Add pre-commit.

This commit is contained in:
Lucas FILIPPI
2025-05-30 23:38:33 +02:00
parent 5ac20af085
commit 504bb49748

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

@@ -0,0 +1,20 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md,markdown"]
exclude: \.svg$
- id: end-of-file-fixer
exclude: \.svg$
- id: check-yaml
- id: double-quote-string-fixer
exclude: \.svg$
- repo: https://github.com/gitleaks/gitleaks
rev: v8.26.0
hooks:
- id: gitleaks
- repo: https://github.com/thoughtworks/talisman
rev: v1.37.0
hooks:
- id: talisman-commit