]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Ajout pre-commit config
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 15 Dec 2023 08:26:20 +0000 (09:26 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 15 Dec 2023 08:26:20 +0000 (09:26 +0100)
.pre-commit-config.yaml [new file with mode: 0644]

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644 (file)
index 0000000..f6a9c44
--- /dev/null
@@ -0,0 +1,24 @@
+repos:
+  # Using this mirror lets us use mypyc-compiled black, which is about 2x faster
+  - repo: https://github.com/psf/black-pre-commit-mirror
+    rev: 23.11.0
+    hooks:
+      - id: black
+        # It is recommended to specify the latest version of Python
+        # supported by your project here, or alternatively use
+        # pre-commit's default_language_version, see
+        # https://pre-commit.com/#top_level-default_language_version
+        language_version: python3.8
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.5.0  # Use the ref you want to point at
+    hooks:
+      - id: trailing-whitespace
+      - id: check-added-large-files
+      - id: debug-statements
+      - id: detect-private-key
+      - id: end-of-file-fixer
+      - id: mixed-line-ending
+  - repo: https://github.com/pre-commit/mirrors-clang-format
+    rev: v17.0.6  # Use the sha / tag you want to point at
+    hooks:
+    - id: clang-format