aboutsummaryrefslogtreecommitdiffstats
path: root/mypy.ini
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-02 20:23:18 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-02 20:23:33 +0100
commitdfb3bd5bfcc885363d8daf031163137ebaac245d (patch)
tree1a7f59c8b6d1f61a3dd35ec9bd4c6833dd566484 /mypy.ini
parentcd83eadb211487857d113896a4b5f860746b034d (diff)
added back the stuff I need to develop in vim
Diffstat (limited to '')
-rw-r--r--mypy.ini41
1 files changed, 41 insertions, 0 deletions
diff --git a/mypy.ini b/mypy.ini
new file mode 100644
index 0000000..ee567a3
--- /dev/null
+++ b/mypy.ini
@@ -0,0 +1,41 @@
+### THESE ARE DEFAULTS PROVIDED FOR flake8-mypy plugin
+### If needed for bare mypy run, add --config-file command
+### Can be applied to flake8 with --mypy-config - both of these pointing to this file
+[mypy]
+# Specify the target platform details in config, so your developers are
+# free to run mypy on Windows, Linux, or macOS and get consistent
+# results.
+python_version=3.6
+platform=linux
+
+# follow imports -normal is default and not requied, but anyway
+follow_imports=normal
+
+# flake8-mypy expects the two following for sensible formatting
+show_column_numbers=True
+show_error_context=False
+
+# suppress errors about unsatisfied imports
+ignore_missing_imports=True
+
+# allow untyped calls as a consequence of the options above
+disallow_untyped_calls=False
+
+# allow returning Any as a consequence of the options above
+warn_return_any=True
+
+# treat Optional per PEP 484
+strict_optional=True
+
+# ensure all execution paths are returning
+warn_no_return=True
+
+# lint-style cleanliness for typing needs to be disabled; returns more errors
+# than the full run.
+warn_redundant_casts=False
+warn_unused_ignores=False
+
+# The following are off by default since they're too noisy.
+# Flip them on if you feel adventurous.
+disallow_untyped_defs=False
+check_untyped_defs=False