Skip to content

Commit

Permalink
Enable warn_return_any, disable for files 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 84d2923 commit 83fe531
Showing 1 changed file with 113 additions and 47 deletions.
160 changes: 113 additions & 47 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ strict_optional = True
warn_no_return = True
warn_redundant_casts = True
warn_unused_ignores = True
warn_return_any = True

# Enable these over time

check_untyped_defs = False
warn_return_any = False
warn_unreachable = False

# Disable some checks until the effected modules fully adopt mypy
Expand All @@ -28,9 +28,21 @@ allow_untyped_defs = True
[mypy-twisted.application.*]
allow_untyped_defs = True

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

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

[mypy-twisted.conch.insults.insults]
warn_return_any = False

[mypy-twisted.conch.ssh.channel]
warn_return_any = False

[mypy-twisted.conch.ssh.keys]
warn_return_any = False

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

Expand All @@ -40,15 +52,71 @@ allow_untyped_defs = True
[mypy-twisted.internet.*]
allow_untyped_defs = True

[mypy-twisted.internet._sslverify]
warn_return_any = False

[mypy-twisted.internet.abstract]
allow_incomplete_defs = True
warn_return_any = False

[mypy-twisted.internet.base]
allow_incomplete_defs = True
warn_return_any = False

[mypy-twisted.internet.interfaces]
allow_incomplete_defs = True

[mypy-twisted.internet.iocpreactor.tcp]
warn_return_any = False

[mypy-twisted.internet.posixbase]
allow_incomplete_defs = True

[mypy-twisted.internet.protocol]
allow_incomplete_defs = True

[mypy-twisted.internet.task]
allow_incomplete_defs = True

[mypy-twisted.internet.tcp]
warn_return_any = False

[mypy-twisted.internet.test.test_base]
allow_incomplete_defs = True

[mypy-twisted.internet.testing]
allow_incomplete_defs = True

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

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

[mypy-twisted.mail._except]
warn_return_any = False

[mypy-twisted.mail.imap4]
warn_return_any = False

[mypy-twisted.mail.smtp]
warn_return_any = False

[mypy-twisted.mail.relaymanager]
allow_incomplete_defs = True

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

[mypy-twisted.names._rfc1982]
warn_return_any = False

[mypy-twisted.names.dns]
warn_return_any = False

[mypy-twisted.names.test.test_dns]
warn_return_any = False

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

Expand All @@ -67,9 +135,35 @@ allow_untyped_defs = True
[mypy-twisted.protocols.*]
allow_untyped_defs = True

[mypy-twisted.protocols.amp]
warn_return_any = False

[mypy-twisted.protocols.sip]
warn_return_any = False

[mypy-twisted.protocols.test.test_basic]
allow_incomplete_defs = True

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

[mypy-twisted.python._setup]
allow_incomplete_defs = True
warn_return_any = False

[mypy-twisted.python.compat]
allow_incomplete_defs = True
warn_return_any = False

[mypy-twisted.python.modules]
warn_return_any = False

[mypy-twisted.python.urlpath]
warn_return_any = False

[mypy-twisted.python.usage]
warn_return_any = False

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

Expand All @@ -85,63 +179,35 @@ allow_untyped_defs = True
[mypy-twisted.test.*]
allow_untyped_defs = True

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

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

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

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

[mypy-twisted.internet.abstract]
allow_incomplete_defs = True

[mypy-twisted.internet.base]
allow_incomplete_defs = True

[mypy-twisted.internet.interfaces]
allow_incomplete_defs = True

[mypy-twisted.internet.posixbase]
allow_incomplete_defs = True

[mypy-twisted.internet.protocol]
allow_incomplete_defs = True

[mypy-twisted.internet.task]
allow_incomplete_defs = True

[mypy-twisted.internet.test.test_base]
[mypy-twisted.test.test_plugin]
allow_incomplete_defs = True

[mypy-twisted.internet.testing]
[mypy-twisted.web.test.test_util]
allow_incomplete_defs = True

[mypy-twisted.mail.relaymanager]
allow_incomplete_defs = True
[mypy-twisted.trial.*]
allow_untyped_defs = True

[mypy-twisted.protocols.test.test_basic]
allow_incomplete_defs = True
[mypy-twisted.web.*]
allow_untyped_defs = True

[mypy-twisted.python._setup]
allow_incomplete_defs = True
[mypy-twisted.web.error]
warn_return_any = False

[mypy-twisted.python.compat]
[mypy-twisted.web.util]
allow_incomplete_defs = True

[mypy-twisted.test.test_plugin]
allow_incomplete_defs = True
[mypy-twisted.words.*]
allow_untyped_defs = True

[mypy-twisted.web.test.test_util]
[mypy-twisted.words.im.basesupport]
allow_incomplete_defs = True

[mypy-twisted.web.util]
allow_incomplete_defs = True
[mypy-twisted.words.im.locals]
warn_return_any = False

[mypy-twisted.words.im.basesupport]
allow_incomplete_defs = True
[mypy-twisted.words.protocols.jabber.jid]
warn_return_any = False

[mypy-twisted.words.xish.domish]
warn_return_any = False

0 comments on commit 83fe531

Please sign in to comment.