]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
feat(CI): add black pre-commit ast/master ast/sat_continuous 9/head
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Mon, 11 Dec 2023 09:18:49 +0000 (10:18 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Tue, 12 Dec 2023 12:47:22 +0000 (13:47 +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..4ff0b2c
--- /dev/null
@@ -0,0 +1,11 @@
+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