diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..0e3ddf94 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +--- +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: end-of-file-fixer + - id: check-json + - id: check-yaml + - id: trailing-whitespace + - repo: https://github.com/pre-commit/mirrors-clang-format + rev: v20.1.5 # clang-format version + hooks: + - id: clang-format + - repo: https://github.com/cpplint/cpplint + rev: 2.0.1 + hooks: + - id: cpplint + - repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.45.0 + hooks: + - id: markdownlint-fix + - repo: https://github.com/tcort/markdown-link-check + rev: v3.13.7 + hooks: + - id: markdown-link-check + args: [-q]