From 47bb7b207f9e3f130f79cb0d568c314f56c235c1 Mon Sep 17 00:00:00 2001 From: Kekoa Kaaikala Date: Thu, 25 Aug 2022 15:15:21 +0000 Subject: [PATCH] Project: Add mypy pre-commit check --- .pre-commit-config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee808ac88..8c403934f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,6 +35,13 @@ repos: hooks: - id: eslint args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"] + - repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.971 + hooks: + - id: mypy + additional_dependencies: [types-paramiko, types-python-dateutil, types-requests] + exclude: ^monkey/tests/ + args: [--ignore-missing-imports] - repo: local hooks: - id: pytest