forked from ClusterLabs/pcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
233 lines (165 loc) · 4.69 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
[mypy]
mypy_path = ./pcs/bundled/packages
# Modules with issues in typehinting:
# TODO: fix
[mypy-pcs.daemon.*]
ignore_errors = True
# Modules and packages with full support have more strict checks enabled
[mypy-pcs.cli.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.cli.booth.env]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.cli.common.env_cli]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.cli.common.lib_wrapper]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.cli.common.middleware]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.cli.file.metadata]
disallow_untyped_defs = False
[mypy-pcs.common.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.entry_points.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.daemon.app.api_v2]
disallow_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
[mypy-pcs.daemon.app.api_v1]
disallow_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
[mypy-pcs.daemon.app.auth]
disallow_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
[mypy-pcs.daemon.async_tasks.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
[mypy-pcs.daemon.session]
disallow_untyped_defs = True
disallow_untyped_calls = True
ignore_errors = False
[mypy-pcs.lib.auth.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.auth.pam]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.lib.cluster_property]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.constraint.duplicates]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.constraint.location]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.nvpair_multi]
disallow_untyped_defs = True
[mypy-pcs.lib.cib.remove_elements]
disallow_untyped_defs = True
[mypy-pcs.lib.cib.resource.clone]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.resource.common]
disallow_untyped_defs = True
[mypy-pcs.lib.cib.resource.group]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.resource.hierarchy]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.resource.relations]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.resource.validations]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.resource_agent.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.rule.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.cib.tag]
disallow_untyped_defs = True
[mypy-pcs.lib.commands.cib]
disallow_untyped_defs = True
[mypy-pcs.lib.commands.cib_options]
disallow_untyped_defs = True
[mypy-pcs.lib.commands.cluster_property]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.commands.dr]
disallow_untyped_defs = True
[mypy-pcs.lib.commands.status]
disallow_untyped_defs = True
[mypy-pcs.lib.commands.tag]
disallow_untyped_defs = True
[mypy-pcs.lib.corosync.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.corosync.qdevice_net]
disallow_untyped_defs = True
disallow_untyped_calls = False
[mypy-pcs.lib.dr.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.file.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.pacemaker.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.pacemaker.state]
disallow_untyped_defs = False
disallow_untyped_calls = False
[mypy-pcs.lib.permissions.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.resource_agent.*]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.services]
disallow_untyped_defs = True
[mypy-pcs.lib.tools]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.validate]
disallow_untyped_defs = True
disallow_untyped_calls = True
[mypy-pcs.lib.xml_tools]
disallow_untyped_defs = True
disallow_untyped_calls = True
# We don't want to type check tests
[mypy-pcs_test.*]
ignore_errors = True
# But we want to type check the test framework
[mypy-pcs_test.tools.*]
ignore_errors = False
[mypy-pcs_test.suite]
ignore_errors = False
# External libraries
[mypy-dacite]
ignore_missing_imports = True
[mypy-lxml.doctestcompare]
ignore_missing_imports = True
[mypy-pyagentx]
ignore_errors = True
ignore_missing_imports = True
[mypy-pyparsing]
ignore_missing_imports = True
[mypy-tornado.*]
ignore_missing_imports = True
ignore_errors = True
[mypy-xml.dom.*]
ignore_missing_imports = True