From 442ba00919f9d90334470a8b4776aaff6d89bd95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ricks?= Date: Mon, 17 Jul 2023 11:59:10 +0200 Subject: [PATCH] Add: Enable linting via mypy Run autohooks-plugin-mypy on commits. --- poetry.lock | 17 ++++++++++++++++- pyproject.toml | 2 ++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 15c2a1a..bd99f64 100644 --- a/poetry.lock +++ b/poetry.lock @@ -52,6 +52,21 @@ files = [ autohooks = ">=21.6.0" isort = ">=5.8.0,<6.0.0" +[[package]] +name = "autohooks-plugin-mypy" +version = "23.3.0" +description = "An autohooks plugin for python code static typing check with mypy" +optional = false +python-versions = ">=3.7.2,<4.0.0" +files = [ + {file = "autohooks_plugin_mypy-23.3.0-py3-none-any.whl", hash = "sha256:3cd38cf53c2307ff396beb448d098f6631c3af74ab289bb45fc4f0f53f72a18b"}, + {file = "autohooks_plugin_mypy-23.3.0.tar.gz", hash = "sha256:eb768b1114c1cb54c8cbfe7f520641b70001d3c90ea9337067ce42567ec44f88"}, +] + +[package.dependencies] +autohooks = ">=21.7.0" +mypy = ">=0.910" + [[package]] name = "autohooks-plugin-ruff" version = "23.6.1" @@ -678,4 +693,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "1f3def53b5922f5c2b002b12e44848383cde5da209953ae3fac33e3df902e9cf" +content-hash = "de20a9aeb705dde265f8362d774c3794f8a57c297448bbef87c69ca19b917ab6" diff --git a/pyproject.toml b/pyproject.toml index 8d20cc3..6ee1c07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,7 @@ autohooks = ">=21.6.0" [tool.poetry.dev-dependencies] autohooks-plugin-ruff = ">=23.6.0" autohooks-plugin-isort = ">=22.3.0" +autohooks-plugin-mypy = ">=23.3.0" coverage = ">=7.2.7" mypy = ">=1.4" pontos = ">=22.5.0" @@ -71,6 +72,7 @@ pre-commit = [ 'autohooks.plugins.isort', 'autohooks.plugins.black', 'autohooks.plugins.ruff', + 'autohooks.plugins.mypy', ] [tool.pontos.version]