From ba687b0e32038e15cdebf1574a0d6486acc4a706 Mon Sep 17 00:00:00 2001 From: benoit Date: Thu, 9 Sep 2021 17:17:25 +0200 Subject: [PATCH] Disable some checks from myppy nagiosplugin has no stubs, it triggers some errors from mypy --- mypy.ini | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mypy.ini b/mypy.ini index 750ec7e..c005e8a 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,10 @@ [mypy] -# nagiosplugin => Skipping analyzing "nagiosplugin": found module but no type hints or library stubs [import] -# ignore_missing_imports = true +# no stubs for nagiosplugin => ignore: found module but no type hints or library stubs [import] +ignore_missing_imports = true +# no subs for nagiosplugin => ignore: Class cannot subclass "Summary" (has type "Any") [misc] +disallow_subclassing_any = false +# no stubs for nagiosplugin => ignore: Untyped decorator makes function "main" untyped [misc] +disallow_untyped_decorators = false + show_error_codes = true strict = true