Skip to content

Commit

Permalink
Enable check_untyped_defs and disable for modules not yet playing along
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez committed Sep 23, 2020
1 parent 83fe531 commit 7f7b1bb
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace_packages=True
plugins=mypy_zope:plugin

check_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_defs = True
ignore_missing_imports = True
Expand All @@ -17,22 +18,24 @@ warn_return_any = True

# Enable these over time

check_untyped_defs = False
warn_unreachable = False

# Disable some checks until the effected modules fully adopt mypy

[mypy-twisted._threads.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.application.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.application.runner.test.test_runner]
allow_incomplete_defs = True

[mypy-twisted.conch.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.conch.insults.insults]
warn_return_any = False
Expand All @@ -45,12 +48,15 @@ warn_return_any = False

[mypy-twisted.cred.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.enterprise.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.internet.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.internet._sslverify]
warn_return_any = False
Expand Down Expand Up @@ -89,9 +95,11 @@ allow_incomplete_defs = True

[mypy-twisted.logger.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.mail.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.mail._except]
warn_return_any = False
Expand All @@ -107,6 +115,7 @@ allow_incomplete_defs = True

[mypy-twisted.names.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.names._rfc1982]
warn_return_any = False
Expand All @@ -119,21 +128,27 @@ warn_return_any = False

[mypy-twisted.pair.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.persisted.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.plugin.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.plugins.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.positioning.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.protocols.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.protocols.amp]
warn_return_any = False
Expand All @@ -146,6 +161,7 @@ allow_incomplete_defs = True

[mypy-twisted.python.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.python._setup]
allow_incomplete_defs = True
Expand All @@ -166,18 +182,23 @@ warn_return_any = False

[mypy-twisted.runner.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.scripts.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.spread.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.tap.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.test.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.test.test_plugin]
allow_incomplete_defs = True
Expand All @@ -187,9 +208,11 @@ allow_incomplete_defs = True

[mypy-twisted.trial.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.web.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.web.error]
warn_return_any = False
Expand All @@ -199,6 +222,7 @@ allow_incomplete_defs = True

[mypy-twisted.words.*]
allow_untyped_defs = True
check_untyped_defs = False

[mypy-twisted.words.im.basesupport]
allow_incomplete_defs = True
Expand Down

0 comments on commit 7f7b1bb

Please sign in to comment.