summaryrefslogtreecommitdiff
path: root/.mypy.ini
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-06-09 13:19:02 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-06-09 13:19:02 +0200
commit5b9237318e33009268780f28f0c84b0e0fb148d6 (patch)
tree5cf553231655e906a75e80532e674eee50fa8b8b /.mypy.ini
parentee8b2cb27a40271381fc85ff00ac046c4090fd7a (diff)
downloadqutebrowser-5b9237318e33009268780f28f0c84b0e0fb148d6.tar.gz
qutebrowser-5b9237318e33009268780f28f0c84b0e0fb148d6.zip
Hide mypy.ini
Diffstat (limited to '.mypy.ini')
-rw-r--r--.mypy.ini115
1 files changed, 115 insertions, 0 deletions
diff --git a/.mypy.ini b/.mypy.ini
new file mode 100644
index 000000000..98150f002
--- /dev/null
+++ b/.mypy.ini
@@ -0,0 +1,115 @@
+[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
+
+# --strict
+warn_unused_configs = True
+# disallow_any_generics = True
+disallow_subclassing_any = True
+# disallow_untyped_calls = True
+# disallow_untyped_defs = True
+disallow_incomplete_defs = True
+check_untyped_defs = True
+disallow_untyped_decorators = True
+# no_implicit_optional = True
+warn_redundant_casts = True
+warn_unused_ignores = True
+# warn_return_any = True
+# no_implicit_reexport = True
+strict_equality = True
+
+# Other strictness flags
+warn_unreachable = True
+
+# Output
+show_error_codes = True
+pretty = True
+
+[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
+# https://github.com/python/typeshed/issues/1019
+ignore_missing_imports = True
+
+[mypy-helpers.*]
+# test helpers only importable via pytest
+ignore_missing_imports = True
+
+[mypy-pytest]
+# https://github.com/pytest-dev/pytest/issues/3342
+ignore_missing_imports = True
+
+[mypy-qutebrowser.browser.webkit.rfc6266]
+# subclasses dynamic PyPEG2 classes
+disallow_subclassing_any = False
+
+[mypy-qutebrowser.browser.browsertab]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.browser.hints]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.misc.objects]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.misc.debugcachestats]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.misc.utilcmds]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.misc.throttle]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.misc.backendproblem]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.config.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.api.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.components.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.extensions.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.browser.webelem]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.browser.webkit.webkitelem]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.browser.webengine.webengineelem]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.keyinput.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.utils.*]
+disallow_untyped_defs = True
+
+[mypy-qutebrowser.mainwindow.statusbar.command]
+disallow_untyped_defs = True