From: SONOLET Aymeric Date: Thu, 4 Jan 2024 14:53:07 +0000 (+0100) Subject: fix: replace asonolet hooks with clang-format-mirror X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=53cd2a690cb32269ac1b54588894981f445e1a6d;p=modules%2Fshaper.git fix: replace asonolet hooks with clang-format-mirror --- diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0623571e2..c552e08fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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