From f2bdaae4bf218b18a64f4df016a845e755313f98 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 21 Oct 2023 22:47:01 +0200 Subject: [PATCH] feat: add pre-commit config --- .pre-commit-config.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..6c952f7 --- /dev/null +++ b/.pre-commit-config.yaml @@ -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]