From 023eabfa941df11a7722d043684ef8fede465a15 Mon Sep 17 00:00:00 2001 From: mcflugen Date: Wed, 20 Mar 2024 11:28:28 -0600 Subject: [PATCH] run mypy on the babelizer --- .pre-commit-config.yaml | 1 + pyproject.toml | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4cf5687..27b394d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -71,4 +71,5 @@ repos: hooks: - id: mypy additional_dependencies: [types-all] + files: babelizer/.*\.py$ exclude: ^babelizer/data diff --git a/pyproject.toml b/pyproject.toml index 2ff094e..47a72c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,6 +148,14 @@ skip = [ "babelizer/data", ] +[tool.mypy] +check_untyped_defs = true +disallow_any_generics = true +disallow_incomplete_defs = true +disallow_untyped_defs = true +warn_redundant_casts = true +warn_unused_ignores = true + [tool.pytest.ini_options] minversion = "6.0" testpaths = [