From 2cdd572799914630ddd5948fe0ee2732fc3563f1 Mon Sep 17 00:00:00 2001 From: Fabio Caccamo Date: Mon, 18 Mar 2024 22:07:06 +0100 Subject: [PATCH] Update `mypy` config. --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0e60b1f..5824825 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: hooks: - id: mypy types: [python] - args: [--install-types, --non-interactive, --strict] + args: [--ignore-missing-imports, --install-types, --non-interactive, --strict] exclude: "tests" - repo: https://github.com/pre-commit/pre-commit-hooks diff --git a/pyproject.toml b/pyproject.toml index 5b9ee32..40708b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,6 +80,8 @@ exclude = ''' [tool.mypy] files = ["codicefiscale"] ignore_missing_imports = true +install_types = true +non_interactive = true strict = true [tool.ruff]