Add .pre-commit-config.yaml

This one is simpler than the one in 2.0 branch, does not include
cmake formatting.
This commit is contained in:
Sergio Martins
2022-07-08 06:55:01 +01:00
parent b5d1b6d02f
commit 3364d8ba76

20
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,20 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-case-conflict
- id: check-yaml
- id: check-json
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v14.0.0
hooks:
- id: clang-format
- repo: https://github.com/codespell-project/codespell
rev: v2.1.0
hooks:
- id: codespell