Skip to content

Commit 4d8d3bf

Browse files
authored
Merge pull request nest#2936 from nicolossus/pre_commit
Add `clang-format` pre-commit hook
2 parents a32e8c8 + 1781cd5 commit 4d8d3bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,14 @@ repos:
44
hooks:
55
- id: black
66
language_version: python3
7+
8+
- repo: https://github.com/pre-commit/mirrors-clang-format
9+
rev: v13.0.0
10+
hooks:
11+
- id: clang-format
12+
13+
- repo: https://github.com/pre-commit/pre-commit-hooks
14+
rev: v4.4.0
15+
hooks:
16+
- id: end-of-file-fixer
17+
- id: trailing-whitespace

0 commit comments

Comments
 (0)