Skip to content

Commit

Permalink
Add pre-commit hook config file for clang-format (#117)
Browse files Browse the repository at this point in the history
* Add pre-commit hook config for clang-format

* Update .pre-commit-config.yaml

Co-authored-by: Frédéric Simonis <simonisfrederic@gmail.com>

* Update .pre-commit-config.yaml

Co-authored-by: Frédéric Simonis <simonisfrederic@gmail.com>

---------

Co-authored-by: Frédéric Simonis <simonisfrederic@gmail.com>
  • Loading branch information
IshaanDesai and fsimonis authored Jan 16, 2024
1 parent e4309b3 commit c6260fe
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:
# Official repo for the clang-format hook
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v8.0.1'
hooks:
- id: clang-format
files: "^adapter"
# Official repo for default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.3.0'
hooks:
- id: check-xml
- id: check-merge-conflict
- id: mixed-line-ending
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer

0 comments on commit c6260fe

Please sign in to comment.