From cfd1a8c52b5c80895bb0f153118e198574f75468 Mon Sep 17 00:00:00 2001 From: Simon Meoni Date: Wed, 4 Sep 2024 18:26:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Style=20Transfer:=20modify=20.pr?= =?UTF-8?q?e-commit-config.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3bac456..e7ac1c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -63,6 +63,15 @@ repos: - id: flake8 exclude: notebooks/ + # Mypy is used to check the typing hints in Python; it is quite a restrictive tool, so we don't + # use it in tests + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.7.1 + hooks: + - id: mypy + exclude: apps/|notebooks/|tests/ + additional_dependencies: ["types-requests", "types-PyYAML"] + # Safety is used to check if there are hardcoded secrets inside code and history - repo: https://github.com/gitleaks/gitleaks rev: v8.18.1