fortuna/.pre-commit-config.yaml

37 lines
965 B
YAML
Raw Normal View History

2021-10-24 23:45:28 +02:00
---
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-merge-conflict
- repo: meta
hooks:
- id: check-hooks-apply
2021-10-24 23:45:28 +02:00
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.4
hooks:
2021-10-30 20:20:30 +02:00
- id: clang-tidy
args: ["-p", "cmake-build-debug"]
2021-10-24 23:45:28 +02:00
- id: cppcheck
args: ["--language=c++", "--std=c++20",
"--enable=warning,performance,portability,information,unusedFunction,missingInclude",
"--verbose"]
files: \.(cpp|cc|cxx,h)$
types: [file, c++]
types_or: [file, c++, header]
2021-10-24 23:45:28 +02:00
- 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