From a40ead9c6019b2243c6ebaba45f145cf7557ae9e Mon Sep 17 00:00:00 2001 From: Felix Schurk Date: Wed, 24 Jul 2024 16:57:58 +0200 Subject: [PATCH] add pre-commit-config.yaml file Includes default tools, as well as clang-format and black. --- .pre-commit-config.yaml | 19 +++++++++++++++++++ 1 file changed, 19 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 000000000..e17239bcc --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,19 @@ +# 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: v4.6.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files +- repo: https://github.com/pre-commit/mirrors-clang-format + rev: v18.1.8 + hooks: + - id: clang-format + types_or: [c++, c] +- repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black