From 61e69433138c386ed46f19f37b5c7fcc9aad2e06 Mon Sep 17 00:00:00 2001
From: Tobias Leibner <tobias.leibner@googlemail.com>
Date: Tue, 23 Nov 2021 15:48:29 +0100
Subject: [PATCH] Add pre-commit-config.yaml

---
 .pre-commit-config.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 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..a73d13510
--- /dev/null
+++ b/.pre-commit-config.yaml
@@ -0,0 +1,26 @@
+# 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: v3.2.0
+    hooks:
+    -   id: trailing-whitespace
+    -   id: check-yaml
+    -   id: check-added-large-files
+    -   id: debug-statements
+-   repo: https://github.com/pycqa/flake8
+    rev: 3.9.2
+    hooks:
+    -   id: flake8
+        exclude: "^pybind11"
+        args: ["--config=./python/setup.cfg"]
+-   repo: https://github.com/pre-commit/mirrors-clang-format
+    rev: 'v8.0.1'
+    hooks:
+    -   id: clang-format
+        exclude: "^(dune/xt/test/gtest/|pybind11)"
+-   repo: https://github.com/pre-commit/mirrors-yapf
+    rev: 'v0.25.0'
+    hooks:
+    -   id: yapf
+        args: ["--style=.vcsetup/.style.yapf"]
-- 
GitLab