-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
33 lines (33 loc) · 1.08 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v16.0.6
hooks:
- id: clang-format
args: ["--style=file"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
# Only check for syntax, do not load.
# doc/config.yml uses a reference-tag which means this hook cannot
# parse it
args: [--unsafe]
- id: detect-private-key
- id: end-of-file-fixer
exclude_types:
- "diff"
- id: mixed-line-ending
- id: no-commit-to-branch
- id: trailing-whitespace
exclude_types:
- "diff"
# Some committed OpenFOAM mesh files are re-written during tests with
# trailing whitespace. Which means that Git classes them as modified
# after the tests are run. Prevent this noise by not trimming the
# whitespace in the first place.
exclude: "(.*/gold/.*)|(.*/[0-9]+/.*)"
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: remove-crlf
- id: forbid-tabs