]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix: replace asonolet hooks with clang-format-mirror
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Thu, 4 Jan 2024 14:53:07 +0000 (15:53 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Thu, 4 Jan 2024 14:53:07 +0000 (15:53 +0100)
.pre-commit-config.yaml

index 0623571e274d3fd6f914fb35166fe4e48d9a58a1..c552e08fad012fc4c921ea167e801e0548274405 100644 (file)
@@ -61,12 +61,25 @@ repos:
           - id: ruff
             types_or: [python, pyi, jupyter]
             args: [--fix]
-            exclude: .*[Tt]est.*
+            exclude: |
+                (?x)^(
+                    .*[Tt]est.*|
+                    __init__.py
+                )$
         # Run the formatter.
           - id: ruff-format
             types_or: [python, pyi, jupyter]
-    - repo: https://github.com/asonolet/clang-hooks
-      rev: v0.1  # Use the sha / tag you want to point at
+    - repo: https://github.com/pre-commit/mirrors-mypy
+      rev: v1.8.0
+      hooks:
+          - id: mypy
+            exclude: |
+                (?x)^(
+                    .*[Tt]est.*
+                )$
+            args: [--ignore-missing-imports, --explicit-package-bases]
+    - 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
           # - id: clang-tidy