2018-11-26 18:07:52 +01:00
|
|
|
[mypy]
|
|
|
|
# We also need to support 3.5, but if we'd chose that here, we'd need to deal
|
|
|
|
# with conditional imports (like secrets.py).
|
|
|
|
python_version = 3.6
|
|
|
|
|
2018-11-26 19:03:07 +01:00
|
|
|
# --strict
|
|
|
|
warn_redundant_casts = True
|
|
|
|
warn_unused_ignores = True
|
|
|
|
disallow_subclassing_any = True
|
2018-12-04 07:28:28 +01:00
|
|
|
disallow_untyped_decorators = True
|
2018-11-27 08:39:05 +01:00
|
|
|
## https://github.com/python/mypy/issues/5957
|
|
|
|
# warn_unused_configs = True
|
2018-11-26 19:03:07 +01:00
|
|
|
# disallow_untyped_calls = True
|
|
|
|
# disallow_untyped_defs = True
|
2018-11-26 23:24:31 +01:00
|
|
|
## https://github.com/python/mypy/issues/5954
|
2018-11-26 19:03:07 +01:00
|
|
|
# disallow_incomplete_defs = True
|
|
|
|
# check_untyped_defs = True
|
|
|
|
# no_implicit_optional = True
|
|
|
|
# warn_return_any = True
|
|
|
|
|
2018-11-26 18:07:52 +01:00
|
|
|
[mypy-colorama]
|
|
|
|
# https://github.com/tartley/colorama/issues/206
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-hunter]
|
|
|
|
# https://github.com/ionelmc/python-hunter/issues/43
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-pygments.*]
|
|
|
|
# https://bitbucket.org/birkenfeld/pygments-main/issues/1485/type-hints
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-cssutils]
|
|
|
|
# Pretty much inactive currently
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-pypeg2]
|
|
|
|
# Pretty much inactive currently
|
|
|
|
ignore_missing_imports = True
|
|
|
|
|
|
|
|
[mypy-bdb]
|
|
|
|
# stdlib, missing in typeshed
|
|
|
|
ignore_missing_imports = True
|
2018-11-26 19:03:07 +01:00
|
|
|
|
|
|
|
[mypy-qutebrowser.browser.webkit.rfc6266]
|
|
|
|
# subclasses dynamic PyPEG2 classes
|
|
|
|
disallow_subclassing_any = False
|
2018-11-27 20:35:58 +01:00
|
|
|
|
|
|
|
[mypy-qutebrowser.browser.browsertab]
|
|
|
|
disallow_untyped_defs = True
|
2018-11-29 11:09:04 +01:00
|
|
|
disallow_incomplete_defs = True
|
|
|
|
|
|
|
|
[mypy-qutebrowser.misc.objects]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
2018-11-29 13:29:33 +01:00
|
|
|
|
|
|
|
[mypy-qutebrowser.commands.cmdutils]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
2018-12-03 15:36:21 +01:00
|
|
|
|
2018-12-05 17:48:56 +01:00
|
|
|
[mypy-qutebrowser.config.*]
|
2018-12-05 16:48:33 +01:00
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
|
|
|
|
2018-12-04 15:52:14 +01:00
|
|
|
[mypy-qutebrowser.api.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
|
|
|
|
|
|
|
[mypy-qutebrowser.components.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|
2018-12-10 10:06:07 +01:00
|
|
|
|
|
|
|
[mypy-qutebrowser.extensions.*]
|
|
|
|
disallow_untyped_defs = True
|
|
|
|
disallow_incomplete_defs = True
|