From 3273f5ef859f53f3a4a46deb1bc75d6f8cc4e0c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Tue, 22 Oct 2024 20:40:38 +0200 Subject: [PATCH] Add default options for mypy in the profiles --- prospector/profiles/profiles/strictness_high.yaml | 7 +++++++ prospector/profiles/profiles/strictness_medium.yaml | 4 ++++ prospector/profiles/profiles/strictness_veryhigh.yaml | 4 ++++ 3 files changed, 15 insertions(+) diff --git a/prospector/profiles/profiles/strictness_high.yaml b/prospector/profiles/profiles/strictness_high.yaml index 93bd6a08..df826d11 100644 --- a/prospector/profiles/profiles/strictness_high.yaml +++ b/prospector/profiles/profiles/strictness_high.yaml @@ -54,3 +54,10 @@ pydocstyle: disable: - D400 - D401 + +mypy: + options: + ignore-missing-imports: true + follow-imports: skip + disallow-untyped-defs: true + strict: false diff --git a/prospector/profiles/profiles/strictness_medium.yaml b/prospector/profiles/profiles/strictness_medium.yaml index 124818bb..900de0c3 100644 --- a/prospector/profiles/profiles/strictness_medium.yaml +++ b/prospector/profiles/profiles/strictness_medium.yaml @@ -125,3 +125,7 @@ pydocstyle: - D101 - D102 - D103 + +mypy: + options: + disallow-untyped-defs: false diff --git a/prospector/profiles/profiles/strictness_veryhigh.yaml b/prospector/profiles/profiles/strictness_veryhigh.yaml index cc90d60b..8df06154 100644 --- a/prospector/profiles/profiles/strictness_veryhigh.yaml +++ b/prospector/profiles/profiles/strictness_veryhigh.yaml @@ -38,3 +38,7 @@ pyroma: pydocstyle: disable: - D000 + +mypy: + options: + strict: true