Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Nov 8, 2023
1 parent ad5b8fb commit a484dbf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- id: clang-format
files: ^src\/.+\.[ch]$
exclude: ^(src\/fortran\/matio_internal.c|src\/snprintf.c|src\/safe-math.h)$

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

0 comments on commit a484dbf

Please sign in to comment.