From 3688f9ab2d21d0614caf39d904a055210deb08c1 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 8 Feb 2024 13:50:56 +0100 Subject: [PATCH] tests: add mypy.ini This adds a mypy.ini configuration file. Signed-off-by: Guillaume Abrioux --- mypy.ini | 9 +++++++++ tox.ini | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 mypy.ini diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 0000000..fd210cd --- /dev/null +++ b/mypy.ini @@ -0,0 +1,9 @@ +[mypy] +strict_optional = True +no_implicit_optional = True +warn_incomplete_stub = True +check_untyped_defs = True +show_error_context = True +allow_redefinition = True +disallow_untyped_defs = True + diff --git a/tox.ini b/tox.ini index 35fad01..f5aa3f0 100644 --- a/tox.ini +++ b/tox.ini @@ -8,7 +8,7 @@ skipsdist = True basepython = python3 deps = mypy -commands = mypy {toxinidir}/library {toxinidir}/module_utils +commands = mypy --config-file ./mypy.ini {toxinidir}/library {toxinidir}/module_utils [testenv:flake8] basepython = python3