Merge pull request #2220 from guardicore/add-mypy-precommit-hook

Project: Add mypy pre-commit check
This commit is contained in:
Mike Salvatore 2022-08-29 10:58:34 -04:00 committed by GitHub
commit fd502a832a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ repos:
hooks: hooks:
- id: eslint - id: eslint
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"] 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]
args: [--ignore-missing-imports]
- repo: local - repo: local
hooks: hooks:
- id: pytest - id: pytest