Skip to content

Commit

Permalink
Add .pre-commit-config.yaml to have auto clang-format
Browse files Browse the repository at this point in the history
It's only enabled when `pre-commit install` is issued
and will make sure the changed code has the correct
style with clang-format v12.0.1
  • Loading branch information
dantti committed Oct 2, 2024
1 parent 40eca10 commit bb3b0f8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^(cmake/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v12.0.1
hooks:
- id: clang-format

0 comments on commit bb3b0f8

Please sign in to comment.