From a21d1bfa73fa0518b2b0a4664c5d5f35630a8d67 Mon Sep 17 00:00:00 2001 From: Mark Dawson Date: Tue, 17 Oct 2023 14:58:30 +0100 Subject: [PATCH] added flake8-type-checking --- CONTRIBUTING.md | 1 + mypy.ini | 4 ++++ setup.cfg | 1 + 3 files changed, 6 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c4f5b82f..dacd98d3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -44,6 +44,7 @@ below. - Mel Hall - Bruno Kinoshita - Hilary Oliver + - Mark Dawson (All contributors are identifiable with email addresses in the git version diff --git a/mypy.ini b/mypy.ini index 51e43ae4..2097c6f1 100644 --- a/mypy.ini +++ b/mypy.ini @@ -11,3 +11,7 @@ explicit_package_bases = True allow_redefinition = True strict_equality = True show_error_codes = True + +# Suppress the following messages: +# By default the bodies of untyped functions are not checked, consider using --check-untyped-defs +disable_error_code = annotation-unchecked \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 15786025..2fe1677c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -75,6 +75,7 @@ tests = flake8-debugger>=4.0.0 flake8-mutable>=1.2.0 flake8-simplify>=0.15.1 + flake8-type-checking; python_version > "3.7" mypy>=0.910 pytest pytest-cov