From: SONOLET Aymeric Date: Fri, 15 Dec 2023 08:26:20 +0000 (+0100) Subject: Ajout pre-commit config X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=385f306d33abcfe0fd1af87e8d6fcfe47fe8491a;p=modules%2Fshaper.git Ajout pre-commit config --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..f6a9c44dd --- /dev/null +++ b/.pre-commit-config.yaml @@ -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