mypy.ini 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. [mypy]
  2. python_version = 3.8
  3. mypy_path = fixtures/mypy-stubs
  4. files = fixtures/mypy-stubs,
  5. src/sentry/analytics/,
  6. src/sentry/api/bases/external_actor.py,
  7. src/sentry/api/bases/organization_events.py,
  8. src/sentry/api/bases/rule.py,
  9. src/sentry/api/endpoints/codeowners/,
  10. src/sentry/api/endpoints/group_events.py,
  11. src/sentry/api/endpoints/group_events_latest.py,
  12. src/sentry/api/endpoints/group_events_oldest.py,
  13. src/sentry/api/endpoints/group_tags.py,
  14. src/sentry/api/endpoints/organization_events_stats.py,
  15. src/sentry/api/endpoints/organization_events_trace.py,
  16. src/sentry/api/endpoints/organization_measurements_meta.py,
  17. src/sentry/api/endpoints/project_app_store_connect_credentials.py,
  18. src/sentry/api/endpoints/team_issue_breakdown.py,
  19. src/sentry/api/endpoints/team_unresolved_issue_age.py,
  20. src/sentry/api/helpers/environments.py,
  21. src/sentry/api/helpers/events.py,
  22. src/sentry/api/helpers/group_index/,
  23. src/sentry/api/issue_search.py,
  24. src/sentry/api/serializers/base.py,
  25. src/sentry/api/serializers/models/external_actor.py,
  26. src/sentry/api/serializers/models/integration.py,
  27. src/sentry/api/serializers/models/notification_setting.py,
  28. src/sentry/api/serializers/models/organization.py,
  29. src/sentry/api/serializers/models/organization_member/,
  30. src/sentry/api/serializers/models/releaseactivity.py,
  31. src/sentry/api/serializers/models/team.py,
  32. src/sentry/api/serializers/models/user.py,
  33. src/sentry/api/serializers/types.py,
  34. src/sentry/api/utils.py,
  35. src/sentry/api/validators/external_actor.py,
  36. src/sentry/api/validators/notifications.py,
  37. src/sentry/apidocs/,
  38. src/sentry/auth/access.py,
  39. src/sentry/auth/helper.py,
  40. src/sentry/auth/provider.py,
  41. src/sentry/constants.py,
  42. src/sentry/db/models/base.py,
  43. src/sentry/db/models/fields/bounded.py,
  44. src/sentry/db/models/fields/foreignkey.py,
  45. src/sentry/db/models/fields/onetoone.py,
  46. src/sentry/db/models/fields/text.py,
  47. src/sentry/db/models/manager/,
  48. src/sentry/db/models/paranoia.py,
  49. src/sentry/db/models/query.py,
  50. src/sentry/db/models/utils.py,
  51. src/sentry/digests/,
  52. src/sentry/dynamic_sampling/,
  53. src/sentry/event_manager.py,
  54. src/sentry/eventstream/base.py,
  55. src/sentry/eventstream/snuba.py,
  56. src/sentry/eventstream/kafka/consumer_strategy.py,
  57. src/sentry/eventstream/kafka/postprocessworker.py,
  58. src/sentry/eventstream/kafka/protocol.py,
  59. src/sentry/eventstream/kafka/state.py,
  60. src/sentry/eventstream/kafka/synchronized.py,
  61. src/sentry/features/,
  62. src/sentry/grouping/result.py,
  63. src/sentry/grouping/strategies/base.py,
  64. src/sentry/grouping/strategies/legacy.py,
  65. src/sentry/grouping/strategies/message.py,
  66. src/sentry/grouping/strategies/newstyle.py,
  67. src/sentry/grouping/strategies/security.py,
  68. src/sentry/grouping/strategies/template.py,
  69. src/sentry/grouping/strategies/utils.py,
  70. src/sentry/incidents/charts.py,
  71. src/sentry/ingest/billing_metrics_consumer.py,
  72. src/sentry/integrations/base.py,
  73. src/sentry/integrations/github/,
  74. src/sentry/integrations/slack/,
  75. src/sentry/integrations/message_builder.py,
  76. src/sentry/integrations/utils/atlassian_connect.py,
  77. src/sentry/integrations/utils/code_mapping.py,
  78. src/sentry/integrations/vsts/,
  79. src/sentry/issues/search.py,
  80. src/sentry/killswitches.py,
  81. src/sentry/lang/native/appconnect.py,
  82. src/sentry/mail/notifications.py,
  83. src/sentry/models/debugfile.py,
  84. src/sentry/models/groupsubscription.py,
  85. src/sentry/models/options/,
  86. src/sentry/models/rulefirehistory.py,
  87. src/sentry/notifications/,
  88. src/sentry/ownership/grammar.py,
  89. src/sentry/pipeline/,
  90. src/sentry/processing/realtime_metrics/,
  91. src/sentry/profiles/,
  92. src/sentry/ratelimits/,
  93. src/sentry/relay/config/__init__.py,
  94. src/sentry/relay/config/measurements.py,
  95. src/sentry/relay/config/metric_extraction.py,
  96. src/sentry/release_health/,
  97. src/sentry/replays/consumers/,
  98. src/sentry/roles/manager.py,
  99. src/sentry/rules/,
  100. src/sentry/runner/commands/devserver.py,
  101. src/sentry/runner/commands/devservices.py,
  102. src/sentry/runner/initializer.py,
  103. src/sentry/search/base.py,
  104. src/sentry/search/events/builder/,
  105. src/sentry/search/events/constants.py,
  106. src/sentry/search/events/types.py,
  107. src/sentry/search/events/datasets/base.py,
  108. src/sentry/search/events/datasets/discover.py,
  109. src/sentry/search/events/datasets/filter_aliases.py,
  110. src/sentry/search/events/datasets/field_aliases.py,
  111. src/sentry/search/snuba/,
  112. src/sentry/search/utils.py,
  113. src/sentry/sentry_metrics/,
  114. src/sentry/services/http.py,
  115. src/sentry/services/base.py,
  116. src/sentry/services/hybrid_cloud/,
  117. src/sentry/shared_integrations/,
  118. src/sentry/silo/,
  119. src/sentry/snuba/entity_subscription.py,
  120. src/sentry/snuba/outcomes.py,
  121. src/sentry/snuba/query_subscription_consumer.py,
  122. src/sentry/snuba/metrics/fields/histogram.py,
  123. src/sentry/snuba/metrics/fields/base.py,
  124. src/sentry/snuba/metrics/naming_layer/,
  125. src/sentry/snuba/metrics/query.py,
  126. src/sentry/snuba/profiles.py,
  127. src/sentry/spans/,
  128. src/sentry/tasks/app_store_connect.py,
  129. src/sentry/tasks/low_priority_symbolication.py,
  130. src/sentry/tasks/store.py,
  131. src/sentry/tasks/symbolication.py,
  132. src/sentry/tasks/update_user_reports.py,
  133. src/sentry/tasks/derive_code_mappings.py,
  134. src/sentry/testutils/modelmanifest.py,
  135. src/sentry/testutils/silo.py,
  136. src/sentry/types/region.py,
  137. src/sentry/unmerge.py,
  138. src/sentry/utils/appleconnect/,
  139. src/sentry/utils/arroyo.py,
  140. src/sentry/utils/assets.py,
  141. src/sentry/utils/auth.py,
  142. src/sentry/utils/avatar.py,
  143. src/sentry/utils/codecs.py,
  144. src/sentry/utils/committers.py,
  145. src/sentry/utils/cursors.py,
  146. src/sentry/utils/dates.py,
  147. src/sentry/utils/email/,
  148. src/sentry/utils/event_frames.py,
  149. src/sentry/utils/hashlib.py,
  150. src/sentry/utils/http.py,
  151. src/sentry/utils/integrationdocs.py,
  152. src/sentry/utils/json.py,
  153. src/sentry/utils/jwt.py,
  154. src/sentry/utils/kvstore,
  155. src/sentry/utils/metrics.py,
  156. src/sentry/utils/options.py,
  157. src/sentry/utils/outcomes.py,
  158. src/sentry/utils/patch_set.py,
  159. src/sentry/utils/request_cache.py,
  160. src/sentry/utils/services.py,
  161. src/sentry/utils/suspect_resolutions/commit_correlation.py,
  162. src/sentry/utils/suspect_resolutions/metric_correlation.py,
  163. src/sentry/utils/suspect_resolutions/resolved_in_active_release.py,
  164. src/sentry/utils/time_window.py,
  165. src/sentry/utils/yaml.py,
  166. src/sentry/web/decorators.py,
  167. src/sentry/web/helpers.py,
  168. tests/sentry/eventstream/kafka/test_consumer_strategy.py,
  169. tests/sentry/eventstream/kafka/test_synchronized.py,
  170. tests/sentry/lang/native/test_appconnect.py,
  171. tests/sentry/processing/realtime_metrics/,
  172. tests/sentry/tasks/test_low_priority_symbolication.py,
  173. tests/sentry/utils/appleconnect/,
  174. tools/
  175. show_error_codes = true
  176. ; Enable all options used with --strict
  177. warn_unused_configs=True
  178. disallow_any_generics=True
  179. disallow_subclassing_any=True
  180. disallow_untyped_calls=True
  181. disallow_untyped_defs=True
  182. disallow_incomplete_defs=True
  183. check_untyped_defs=True
  184. disallow_untyped_decorators=True
  185. no_implicit_optional=True
  186. warn_unused_ignores=True
  187. warn_redundant_casts=True
  188. warn_return_any=True
  189. no_implicit_reexport=True
  190. ; Set this to skip until more of the codebase is typed
  191. [mypy-sentry.*]
  192. follow_imports = skip
  193. [mypy-bitfield.*]
  194. follow_imports = silent
  195. [mypy-celery.*]
  196. ignore_missing_imports = True
  197. [mypy-confluent_kafka.*]
  198. ignore_missing_imports = True
  199. [mypy-django.*]
  200. ignore_missing_imports = True
  201. [mypy-docker.*]
  202. ignore_missing_imports = True
  203. [mypy-google.*]
  204. ignore_missing_imports = True
  205. [mypy-honcho.*]
  206. ignore_missing_imports = True
  207. [mypy-kombu]
  208. ignore_missing_imports = True
  209. [mypy-mistune.*]
  210. ignore_missing_imports = True
  211. [mypy-parsimonious.*]
  212. ignore_missing_imports = True
  213. [mypy-rb.*]
  214. ignore_missing_imports = True
  215. [mypy-rest_framework.*]
  216. ignore_missing_imports = True
  217. [mypy-sentry_relay.*]
  218. ignore_missing_imports = True
  219. [mypy-toronado]
  220. ignore_missing_imports = True
  221. [mypy-unidiff]
  222. ignore_missing_imports = True
  223. [mypy-msgpack]
  224. ignore_missing_imports = True
  225. [mypy-rapidjson]
  226. ignore_missing_imports = True
  227. # TODO: these cause type errors when followed
  228. [mypy-snuba_sdk.*]
  229. follow_imports = skip
  230. # this package marks itself as typed but has no annotations
  231. [mypy-google.cloud.bigtable.*]
  232. follow_imports = skip
  233. # https://github.com/googleapis/python-api-core/pull/453
  234. [mypy-google.api_core.retry]
  235. follow_imports = skip