MyModernCppStarter/.pre-commit-config.yaml

40 lines
980 B
YAML

# SPDX-FileCopyrightText: 2025 Tobias Schmidl
#
# SPDX-License-Identifier: MIT
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: check-byte-order-marker
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '3.4.0'
hooks:
- id: editorconfig-checker
alias: ec
stages: [pre-commit]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.45.0
hooks:
- id: markdownlint
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
- repo: https://github.com/cpp-linter/cpp-linter-hooks
rev: v1.0.1
hooks:
- id: clang-format
- id: clang-tidy
args: ['-p', 'os-core-flightrecorderrt-cpp/build']