feat: add pre-commit config
This commit is contained in:
parent
9b20fc7126
commit
f2bdaae4bf
1 changed files with 24 additions and 0 deletions
24
.pre-commit-config.yaml
Normal file
24
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/commitizen-tools/commitizen
|
||||||
|
rev: 3.12.0
|
||||||
|
hooks:
|
||||||
|
- id: commitizen
|
||||||
|
stages: [commit-msg]
|
||||||
|
|
||||||
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
|
rev: v3.0.3
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
name: check markdown/yaml formatting
|
||||||
|
types_or:
|
||||||
|
- markdown
|
||||||
|
- yaml
|
||||||
|
args: [--no-config]
|
||||||
|
exclude: CHANGELOG.md
|
||||||
|
|
||||||
|
- repo: https://github.com/pocc/pre-commit-hooks
|
||||||
|
rev: v1.3.5
|
||||||
|
hooks:
|
||||||
|
- id: clang-format
|
||||||
|
- id: clang-tidy
|
||||||
|
args: [-p=build]
|
Loading…
Reference in a new issue