add .pre-commit-config.yaml
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cb4bca0b30
commit
b0d4cb2468
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
fail_fast: false
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v4.0.1
|
||||||
|
hooks:
|
||||||
|
- id: check-merge-conflict
|
||||||
|
- repo: https://github.com/pocc/pre-commit-hooks
|
||||||
|
rev: v1.3.4
|
||||||
|
hooks:
|
||||||
|
- id: cppcheck
|
||||||
|
args: ["--language=c++", "--enable=performance,unusedFunction", "--std=c++20"]
|
||||||
|
- repo: local
|
||||||
|
hooks:
|
||||||
|
- id: make-test
|
||||||
|
name: make test
|
||||||
|
entry: make
|
||||||
|
args: ["test"]
|
||||||
|
language: system
|
||||||
|
pass_filenames: false
|
||||||
|
- id: build-release
|
||||||
|
name: make release
|
||||||
|
entry: make
|
||||||
|
args: ["release"]
|
||||||
|
language: system
|
||||||
|
pass_filenames: false
|
Reference in New Issue