aboutsummaryrefslogtreecommitdiffstats
path: root/checker/.mypy.ini
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-07-02 00:08:54 +0200
committerLouis Burda <quent.burda@gmail.com>2021-07-02 00:31:46 +0200
commitecf4de6db67ce19d90a0b55ad8c1544087398a4c (patch)
tree8988e5cc79a54f6c692130aaa669e73b66e42c4d /checker/.mypy.ini
parent7501a1d6c20581312eb37de883ab52e83e27c8fa (diff)
downloadenowars5-service-stldoctor-ecf4de6db67ce19d90a0b55ad8c1544087398a4c.tar.gz
enowars5-service-stldoctor-ecf4de6db67ce19d90a0b55ad8c1544087398a4c.zip
refactored code to be style compliant and mostly statically typed with mypy
Diffstat (limited to 'checker/.mypy.ini')
-rw-r--r--checker/.mypy.ini26
1 files changed, 26 insertions, 0 deletions
diff --git a/checker/.mypy.ini b/checker/.mypy.ini
new file mode 100644
index 0000000..213594c
--- /dev/null
+++ b/checker/.mypy.ini
@@ -0,0 +1,26 @@
+[mypy]
+warn_redundant_casts = True
+warn_unused_ignores = True
+warn_no_return = True
+warn_unreachable = True
+
+# Untyped Definitions and Calls
+disallow_untyped_calls = True
+disallow_untyped_defs = True
+disallow_incomplete_defs = True
+check_untyped_defs = True
+disallow_untyped_decorators = True
+
+[mypy-tests.*]
+disallow_untyped_calls = False
+disallow_untyped_defs = False
+disallow_incomplete_defs = False
+disallow_untyped_decorators = False
+
+[mypy-enochecker3]
+ignore_missing_imports = True
+
+[mypy-faker]
+ignore_missing_imports = True
+
+