diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc4e10fd5196e5eeac47ca4d269f2ba5eca721e9..12b803099c46074f42de67bfef66c01d1f2edbac 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,6 +19,13 @@ repos: hooks: - id: isort args: ["--profile", "black"] +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v0.960 + hooks: + - id: mypy + args: + - "--install-types" + - "--non-interactive" - repo: https://github.com/asottile/pyupgrade rev: v2.32.1 hooks: diff --git a/pyproject.toml b/pyproject.toml index 408fc06aafbd669e76ce3ef4b48ab2ca358a8134..cf6b98f94ffed9cb668893235c0c5f78e09e5a3b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,3 +44,6 @@ classifiers = [ [tool.isort] profile = "black" src_paths = ["silkaj", "tests"] + +[tool.mypy] +ignore_missing_imports = true