summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-05-19 17:01:14 -0700
committerAnthony Sottile <asottile@umich.edu>2019-05-19 17:31:04 -0700
commitfb7e9338cd06760a2f9096f976f0e246fc36a09e (patch)
treec2a2a2a907d7540eef0dbd633d6cb52cc50da14a /setup.cfg
parentb6ba6d4d03109965d3cf5174d5c2e6868d7d92bb (diff)
downloadflake8-fb7e9338cd06760a2f9096f976f0e246fc36a09e.tar.gz
mypy now passes
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg25
1 files changed, 25 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index e887ea8..109a253 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -16,3 +16,28 @@ requires-dist =
pyflakes >= 2.1.0, < 2.2.0
pycodestyle >= 2.5.0, < 2.6.0
mccabe >= 0.6.0, < 0.7.0
+
+[mypy]
+check_untyped_defs = true
+disallow_any_generics = true
+disallow_incomplete_defs = true
+# TODO: disallow_untyped_defs = true
+no_implicit_optional = true
+warn_unused_ignores = true
+
+# TODO: until we opt in all the modules
+[mypy-flake8.defaults]
+disallow_untyped_defs = true
+[mypy-flake8.exceptions]
+disallow_untyped_defs = true
+[mypy-flake8.formatting.*]
+disallow_untyped_defs = true
+[mypy-flake8.main.cli]
+disallow_untyped_defs = true
+[mypy-flake8.statistics]
+disallow_untyped_defs = true
+[mypy-flake8.utils]
+disallow_untyped_defs = true
+
+[mypy-tests.*]
+disallow_untyped_defs = false