Skip to content

Commit

Permalink
Merge pull request #90 from thbeu/add-pre-commit-hooks
Browse files Browse the repository at this point in the history
Add some more pre-commit-hooks
  • Loading branch information
rouault authored Jan 27, 2024
2 parents 4cdeca6 + 35e8a40 commit c371078
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.4'
hooks:
- id: clang-format
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v16.0.6'
hooks:
- id: clang-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
files: ^(contrib\/.+\.[ch]|.+\.[ch])$
- id: end-of-file-fixer
files: ^(contrib\/.+\.[ch]|.+\.[ch])$
- id: fix-byte-order-marker
files: ^(contrib\/.+\.[ch]|.+\.[ch])$

0 comments on commit c371078

Please sign in to comment.