Skip to content

Commit b53f037

Browse files
authored
Merge pull request #106 from blowekamp/add_pre_commit_config
ENH: Add precommit config for clang-format
2 parents 7f3c0d9 + 0ad0c67 commit b53f037

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.pre-commit-config.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# .pre-commit-config.yaml
2+
# for details see https://pre-commit.com
3+
# for list of available hooks see https://pre-commit.com/hooks.html
4+
#
5+
# Preclude commits that do not conform to various criteria.
6+
#
7+
# If a pre-commit check must be skipped then use: `SKIP=check_id git commit` Where `check_id` is the id of the check to
8+
# be skipped such as `black`.
9+
10+
fail_fast: true
11+
default_stages: [pre-commit]
12+
repos:
13+
- repo: https://github.com/pre-commit/mirrors-clang-format
14+
rev: v19.1.7
15+
hooks:
16+
- id: clang-format
17+
args: ['--style=file']
18+
files: '\.(c|cc|h|cxx|hxx)$'

0 commit comments

Comments
 (0)