Skip to content

Commit

Permalink
Merge pull request #66 from KDAB/dantti/add-pre-commit
Browse files Browse the repository at this point in the history
Add pre-commit
LeonMatthesKDAB authored Jan 19, 2024
2 parents aa3c8eb + f04e16b commit 7a2b6d2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
autoupdate_schedule: monthly

exclude: ^(cmake/|3rdparty/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
hooks:
- id: clang-format
exclude: (.json)
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-lint
- id: cmake-format

0 comments on commit 7a2b6d2

Please sign in to comment.