Skip to content

Commit

Permalink
add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyr committed Jun 9, 2022
1 parent b0bb279 commit fb6ed3b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
skip: [clang-format]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
exclude: ^tests/.*/data/.*$
- id: end-of-file-fixer
exclude: ^tests/.*/data/.*$
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
# - id: cmake-lint
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [--style=file, -i]
# - id: clang-tidy
# args: [-checks=clang-diagnostic-return-type]
# - id: oclint
# args: [-enable-clang-static-analyzer, -enable-global-analysis]
# - id: uncrustify
# - id: cppcheck
# args: [--enable=all]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint
args: [-f]

0 comments on commit fb6ed3b

Please sign in to comment.