Add pre-commit hook. (#20)

This commit is contained in:
Mikaël Capelle
2025-05-29 11:21:21 +02:00
committed by GitHub
parent 281febad38
commit 0b1ea0a620
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -6,4 +6,4 @@ indent_size = 4
[{CMakeLists.txt, *.cmake}]
indent_style = space
indent_size = 4
indent_size = 4
+15
View File
@@ -0,0 +1,15 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-case-conflict
ci:
autofix_commit_msg: "[pre-commit.ci] Auto fixes from pre-commit.com hooks."
autofix_prs: true
autoupdate_commit_msg: "[pre-commit.ci] Pre-commit autoupdate."
autoupdate_schedule: quarterly
submodules: false