From: SONOLET Aymeric Date: Mon, 11 Dec 2023 09:18:49 +0000 (+0100) Subject: feat(CI): add black pre-commit X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6798877567e2bc393a50f5a082290935743464c4;p=tools%2Fsat.git feat(CI): add black pre-commit --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..4ff0b2c --- /dev/null +++ b/.pre-commit-config.yaml @@ -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