forked from qutebrowser/qutebrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mypy.ini
125 lines (91 loc) · 2.83 KB
/
.mypy.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[mypy]
python_version = 3.7
### --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
disallow_any_unimported = True
enable_error_code = ignore-without-code
### Output
show_error_codes = True
show_error_context = 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://github.com/pygments/pygments/issues/1189
ignore_missing_imports = True
[mypy-qutebrowser.browser.browsertab]
disallow_untyped_defs = True
[mypy-qutebrowser.browser.hints]
disallow_untyped_defs = True
[mypy-qutebrowser.browser.inspector]
disallow_untyped_defs = True
[mypy-qutebrowser.browser.webkit.webkitinspector]
disallow_untyped_defs = True
[mypy-qutebrowser.browser.webengine.webengineinspector]
disallow_untyped_defs = True
[mypy-qutebrowser.browser.webengine.notification]
disallow_untyped_defs = True
[mypy-qutebrowser.misc.guiprocess]
disallow_untyped_defs = True
[mypy-qutebrowser.misc.objects]
disallow_untyped_defs = True
[mypy-qutebrowser.misc.quitter]
disallow_untyped_defs = True
[mypy-qutebrowser.misc.debugcachestats]
disallow_untyped_defs = True
[mypy-qutebrowser.misc.elf]
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.config.configtypes]
# Needs some major work to use specific generics
disallow_any_generics = False
[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.browser.webengine.darkmode]
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
[mypy-qutebrowser.browser.qutescheme]
disallow_untyped_defs = True
[mypy-qutebrowser.completion.models.filepathcategory]
disallow_untyped_defs = True