From 53cd2a690cb32269ac1b54588894981f445e1a6d Mon Sep 17 00:00:00 2001 From: SONOLET Aymeric Date: Thu, 4 Jan 2024 15:53:07 +0100 Subject: [PATCH] fix: replace asonolet hooks with clang-format-mirror --- .pre-commit-config.yaml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) 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 -- 2.39.2