forked from getsentry/sentry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mypy.ini
241 lines (235 loc) · 9.1 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
234
235
236
237
238
239
240
241
[mypy]
python_version = 3.8
mypy_path = fixtures/mypy-stubs
files = fixtures/mypy-stubs,
src/sentry/analytics/,
src/sentry/api/bases/external_actor.py,
src/sentry/api/bases/organization_events.py,
src/sentry/api/bases/rule.py,
src/sentry/api/endpoints/codeowners/,
src/sentry/api/endpoints/group_events.py,
src/sentry/api/endpoints/group_events_latest.py,
src/sentry/api/endpoints/group_events_oldest.py,
src/sentry/api/endpoints/group_tags.py,
src/sentry/api/endpoints/organization_events_stats.py,
src/sentry/api/endpoints/organization_events_trace.py,
src/sentry/api/endpoints/organization_measurements_meta.py,
src/sentry/api/endpoints/project_app_store_connect_credentials.py,
src/sentry/api/endpoints/team_issue_breakdown.py,
src/sentry/api/endpoints/team_unresolved_issue_age.py,
src/sentry/api/helpers/environments.py,
src/sentry/api/helpers/events.py,
src/sentry/api/helpers/group_index/,
src/sentry/api/issue_search.py,
src/sentry/api/serializers/base.py,
src/sentry/api/serializers/models/external_actor.py,
src/sentry/api/serializers/models/integration.py,
src/sentry/api/serializers/models/notification_setting.py,
src/sentry/api/serializers/models/organization.py,
src/sentry/api/serializers/models/organization_member/,
src/sentry/api/serializers/models/releaseactivity.py,
src/sentry/api/serializers/models/team.py,
src/sentry/api/serializers/models/user.py,
src/sentry/api/serializers/types.py,
src/sentry/api/utils.py,
src/sentry/api/validators/external_actor.py,
src/sentry/api/validators/notifications.py,
src/sentry/apidocs/,
src/sentry/auth/access.py,
src/sentry/auth/helper.py,
src/sentry/auth/provider.py,
src/sentry/constants.py,
src/sentry/db/models/base.py,
src/sentry/db/models/fields/bounded.py,
src/sentry/db/models/fields/foreignkey.py,
src/sentry/db/models/fields/onetoone.py,
src/sentry/db/models/fields/text.py,
src/sentry/db/models/manager/,
src/sentry/db/models/paranoia.py,
src/sentry/db/models/query.py,
src/sentry/db/models/utils.py,
src/sentry/digests/,
src/sentry/dynamic_sampling/,
src/sentry/event_manager.py,
src/sentry/eventstream/base.py,
src/sentry/eventstream/snuba.py,
src/sentry/eventstream/kafka/consumer_strategy.py,
src/sentry/eventstream/kafka/postprocessworker.py,
src/sentry/eventstream/kafka/protocol.py,
src/sentry/eventstream/kafka/state.py,
src/sentry/eventstream/kafka/synchronized.py,
src/sentry/features/,
src/sentry/grouping/result.py,
src/sentry/grouping/strategies/base.py,
src/sentry/grouping/strategies/legacy.py,
src/sentry/grouping/strategies/message.py,
src/sentry/grouping/strategies/newstyle.py,
src/sentry/grouping/strategies/security.py,
src/sentry/grouping/strategies/template.py,
src/sentry/grouping/strategies/utils.py,
src/sentry/incidents/charts.py,
src/sentry/ingest/billing_metrics_consumer.py,
src/sentry/integrations/base.py,
src/sentry/integrations/github/,
src/sentry/integrations/slack/,
src/sentry/integrations/message_builder.py,
src/sentry/integrations/utils/atlassian_connect.py,
src/sentry/integrations/utils/code_mapping.py,
src/sentry/integrations/vsts/,
src/sentry/issues/search.py,
src/sentry/killswitches.py,
src/sentry/lang/native/appconnect.py,
src/sentry/mail/notifications.py,
src/sentry/models/debugfile.py,
src/sentry/models/groupsubscription.py,
src/sentry/models/options/,
src/sentry/models/rulefirehistory.py,
src/sentry/notifications/,
src/sentry/ownership/grammar.py,
src/sentry/pipeline/,
src/sentry/processing/realtime_metrics/,
src/sentry/profiles/,
src/sentry/ratelimits/,
src/sentry/relay/config/__init__.py,
src/sentry/relay/config/measurements.py,
src/sentry/relay/config/metric_extraction.py,
src/sentry/release_health/,
src/sentry/replays/consumers/,
src/sentry/roles/manager.py,
src/sentry/rules/,
src/sentry/runner/commands/devserver.py,
src/sentry/runner/commands/devservices.py,
src/sentry/runner/initializer.py,
src/sentry/search/base.py,
src/sentry/search/events/builder/,
src/sentry/search/events/constants.py,
src/sentry/search/events/types.py,
src/sentry/search/events/datasets/base.py,
src/sentry/search/events/datasets/discover.py,
src/sentry/search/events/datasets/filter_aliases.py,
src/sentry/search/events/datasets/field_aliases.py,
src/sentry/search/snuba/,
src/sentry/search/utils.py,
src/sentry/sentry_metrics/,
src/sentry/services/http.py,
src/sentry/services/base.py,
src/sentry/services/hybrid_cloud/,
src/sentry/shared_integrations/,
src/sentry/silo/,
src/sentry/snuba/entity_subscription.py,
src/sentry/snuba/outcomes.py,
src/sentry/snuba/query_subscription_consumer.py,
src/sentry/snuba/metrics/fields/histogram.py,
src/sentry/snuba/metrics/fields/base.py,
src/sentry/snuba/metrics/naming_layer/,
src/sentry/snuba/metrics/query.py,
src/sentry/snuba/profiles.py,
src/sentry/spans/,
src/sentry/tasks/app_store_connect.py,
src/sentry/tasks/low_priority_symbolication.py,
src/sentry/tasks/store.py,
src/sentry/tasks/symbolication.py,
src/sentry/tasks/update_user_reports.py,
src/sentry/tasks/derive_code_mappings.py,
src/sentry/testutils/modelmanifest.py,
src/sentry/testutils/silo.py,
src/sentry/types/region.py,
src/sentry/unmerge.py,
src/sentry/utils/appleconnect/,
src/sentry/utils/arroyo.py,
src/sentry/utils/assets.py,
src/sentry/utils/auth.py,
src/sentry/utils/avatar.py,
src/sentry/utils/codecs.py,
src/sentry/utils/committers.py,
src/sentry/utils/cursors.py,
src/sentry/utils/dates.py,
src/sentry/utils/email/,
src/sentry/utils/event_frames.py,
src/sentry/utils/hashlib.py,
src/sentry/utils/http.py,
src/sentry/utils/integrationdocs.py,
src/sentry/utils/json.py,
src/sentry/utils/jwt.py,
src/sentry/utils/kvstore,
src/sentry/utils/metrics.py,
src/sentry/utils/options.py,
src/sentry/utils/outcomes.py,
src/sentry/utils/patch_set.py,
src/sentry/utils/request_cache.py,
src/sentry/utils/services.py,
src/sentry/utils/suspect_resolutions/commit_correlation.py,
src/sentry/utils/suspect_resolutions/metric_correlation.py,
src/sentry/utils/suspect_resolutions/resolved_in_active_release.py,
src/sentry/utils/time_window.py,
src/sentry/utils/yaml.py,
src/sentry/web/decorators.py,
src/sentry/web/helpers.py,
tests/sentry/eventstream/kafka/test_consumer_strategy.py,
tests/sentry/eventstream/kafka/test_synchronized.py,
tests/sentry/lang/native/test_appconnect.py,
tests/sentry/processing/realtime_metrics/,
tests/sentry/tasks/test_low_priority_symbolication.py,
tests/sentry/utils/appleconnect/,
tools/
show_error_codes = true
; Enable all options used with --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_unused_ignores=True
warn_redundant_casts=True
warn_return_any=True
no_implicit_reexport=True
; Set this to skip until more of the codebase is typed
[mypy-sentry.*]
follow_imports = skip
[mypy-bitfield.*]
follow_imports = silent
[mypy-celery.*]
ignore_missing_imports = True
[mypy-confluent_kafka.*]
ignore_missing_imports = True
[mypy-django.*]
ignore_missing_imports = True
[mypy-docker.*]
ignore_missing_imports = True
[mypy-google.*]
ignore_missing_imports = True
[mypy-honcho.*]
ignore_missing_imports = True
[mypy-kombu]
ignore_missing_imports = True
[mypy-mistune.*]
ignore_missing_imports = True
[mypy-parsimonious.*]
ignore_missing_imports = True
[mypy-rb.*]
ignore_missing_imports = True
[mypy-rest_framework.*]
ignore_missing_imports = True
[mypy-sentry_relay.*]
ignore_missing_imports = True
[mypy-toronado]
ignore_missing_imports = True
[mypy-unidiff]
ignore_missing_imports = True
[mypy-msgpack]
ignore_missing_imports = True
[mypy-rapidjson]
ignore_missing_imports = True
# TODO: these cause type errors when followed
[mypy-snuba_sdk.*]
follow_imports = skip
# this package marks itself as typed but has no annotations
[mypy-google.cloud.bigtable.*]
follow_imports = skip
# https://github.com/googleapis/python-api-core/pull/453
[mypy-google.api_core.retry]
follow_imports = skip