From 961c6eb09935dc73070c3263e6b33f684306820f Mon Sep 17 00:00:00 2001 From: Florent Clarret Date: Wed, 3 Jul 2024 09:56:27 +0200 Subject: [PATCH] Add mypy to the pre-commit hooks --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e7a06c1f998c0..8d8c38df665a29 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,16 @@ repos: hooks: - id: vulture args: ["--ignore-decorators", "@task", "--ignore-names", "test_*,Test*", "tasks"] +- repo: https://github.com/pre-commit/mirrors-mypy + rev: e5ea6670624c24f8321f6328ef3176dbba76db46 # 1.10.0 + hooks: + - id: mypy + # Keep in sync with the build image, there's no good way to centralize this. + additional_dependencies: + - types-pyyaml==6.0.12.20240311 + - types-requests==2.30.0 + - types-tabulate==0.9.0.20240106 + - types-toml==0.10.8.20240310 - repo: https://github.com/jumanjihouse/pre-commit-hooks rev: 7cc5848088fd8412905ab79feea6c8edc3ac76c6 # 2.1.5 hooks: