mypy.ini 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  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/constants.py,
  39. src/sentry/db/models/base.py,
  40. src/sentry/db/models/fields/bounded.py,
  41. src/sentry/db/models/fields/foreignkey.py,
  42. src/sentry/db/models/fields/onetoone.py,
  43. src/sentry/db/models/fields/text.py,
  44. src/sentry/db/models/manager/,
  45. src/sentry/db/models/paranoia.py,
  46. src/sentry/db/models/query.py,
  47. src/sentry/db/models/utils.py,
  48. src/sentry/digests/,
  49. src/sentry/dynamic_sampling/,
  50. src/sentry/event_manager.py,
  51. src/sentry/eventstream/base.py,
  52. src/sentry/eventstream/snuba.py,
  53. src/sentry/eventstream/kafka/consumer_strategy.py,
  54. src/sentry/eventstream/kafka/postprocessworker.py,
  55. src/sentry/eventstream/kafka/protocol.py,
  56. src/sentry/eventstream/kafka/state.py,
  57. src/sentry/eventstream/kafka/synchronized.py,
  58. src/sentry/features/,
  59. src/sentry/grouping/result.py,
  60. src/sentry/grouping/strategies/base.py,
  61. src/sentry/grouping/strategies/legacy.py,
  62. src/sentry/grouping/strategies/message.py,
  63. src/sentry/grouping/strategies/newstyle.py,
  64. src/sentry/grouping/strategies/security.py,
  65. src/sentry/grouping/strategies/template.py,
  66. src/sentry/grouping/strategies/utils.py,
  67. src/sentry/incidents/charts.py,
  68. src/sentry/ingest/billing_metrics_consumer.py,
  69. src/sentry/integrations/base.py,
  70. src/sentry/integrations/github/,
  71. src/sentry/integrations/slack/,
  72. src/sentry/integrations/message_builder.py,
  73. src/sentry/integrations/utils/atlassian_connect.py,
  74. src/sentry/integrations/utils/code_mapping.py,
  75. src/sentry/integrations/vsts/,
  76. src/sentry/issues/search.py,
  77. src/sentry/killswitches.py,
  78. src/sentry/lang/native/appconnect.py,
  79. src/sentry/mail/notifications.py,
  80. src/sentry/models/debugfile.py,
  81. src/sentry/models/groupsubscription.py,
  82. src/sentry/models/options/,
  83. src/sentry/models/rulefirehistory.py,
  84. src/sentry/notifications/,
  85. src/sentry/ownership/grammar.py,
  86. src/sentry/pipeline/,
  87. src/sentry/processing/realtime_metrics/,
  88. src/sentry/profiles/,
  89. src/sentry/ratelimits/,
  90. src/sentry/relay/config/measurements.py,
  91. src/sentry/relay/config/metric_extraction.py,
  92. src/sentry/release_health/,
  93. src/sentry/replays/consumers/,
  94. src/sentry/roles/manager.py,
  95. src/sentry/rules/,
  96. src/sentry/runner/commands/devserver.py,
  97. src/sentry/runner/commands/devservices.py,
  98. src/sentry/runner/initializer.py,
  99. src/sentry/search/base.py,
  100. src/sentry/search/events/builder.py,
  101. src/sentry/search/events/constants.py,
  102. src/sentry/search/events/types.py,
  103. src/sentry/search/snuba/,
  104. src/sentry/sentry_metrics/,
  105. src/sentry/services/http.py,
  106. src/sentry/services/base.py,
  107. src/sentry/shared_integrations/,
  108. src/sentry/silo/,
  109. src/sentry/snuba/entity_subscription.py,
  110. src/sentry/snuba/outcomes.py,
  111. src/sentry/snuba/query_subscription_consumer.py,
  112. src/sentry/snuba/metrics/fields/histogram.py,
  113. src/sentry/snuba/metrics/fields/base.py,
  114. src/sentry/snuba/metrics/naming_layer/,
  115. src/sentry/snuba/metrics/query.py,
  116. src/sentry/snuba/profiles.py,
  117. src/sentry/spans/,
  118. src/sentry/tasks/app_store_connect.py,
  119. src/sentry/tasks/low_priority_symbolication.py,
  120. src/sentry/tasks/store.py,
  121. src/sentry/tasks/symbolication.py,
  122. src/sentry/tasks/update_user_reports.py,
  123. src/sentry/tasks/derive_code_mappings.py,
  124. src/sentry/testutils/modelmanifest.py,
  125. src/sentry/testutils/silo.py,
  126. src/sentry/types/region.py,
  127. src/sentry/unmerge.py,
  128. src/sentry/utils/appleconnect/,
  129. src/sentry/utils/arroyo.py,
  130. src/sentry/utils/assets.py,
  131. src/sentry/utils/hashlib.py,
  132. src/sentry/utils/suspect_resolutions/commit_correlation.py,
  133. src/sentry/utils/suspect_resolutions/metric_correlation.py,
  134. src/sentry/utils/suspect_resolutions/resolved_in_active_release.py,
  135. src/sentry/utils/avatar.py,
  136. src/sentry/utils/codecs.py,
  137. src/sentry/utils/committers.py,
  138. src/sentry/utils/cursors.py,
  139. src/sentry/utils/dates.py,
  140. src/sentry/utils/email/,
  141. src/sentry/utils/event_frames.py,
  142. src/sentry/utils/http.py,
  143. src/sentry/utils/integrationdocs.py,
  144. src/sentry/utils/jwt.py,
  145. src/sentry/utils/kvstore,
  146. src/sentry/utils/metrics.py,
  147. src/sentry/utils/options.py,
  148. src/sentry/utils/outcomes.py,
  149. src/sentry/utils/patch_set.py,
  150. src/sentry/utils/services.py,
  151. src/sentry/utils/time_window.py,
  152. src/sentry/utils/yaml.py,
  153. src/sentry/web/decorators.py,
  154. src/sentry/web/helpers.py,
  155. tests/sentry/eventstream/kafka/test_consumer_strategy.py,
  156. tests/sentry/eventstream/kafka/test_synchronized.py,
  157. tests/sentry/lang/native/test_appconnect.py,
  158. tests/sentry/processing/realtime_metrics/,
  159. tests/sentry/tasks/test_low_priority_symbolication.py,
  160. tests/sentry/utils/appleconnect/,
  161. tools/
  162. show_error_codes = true
  163. ; Enable all options used with --strict
  164. warn_unused_configs=True
  165. disallow_any_generics=True
  166. disallow_subclassing_any=True
  167. disallow_untyped_calls=True
  168. disallow_untyped_defs=True
  169. disallow_incomplete_defs=True
  170. check_untyped_defs=True
  171. disallow_untyped_decorators=True
  172. no_implicit_optional=True
  173. warn_unused_ignores=True
  174. warn_redundant_casts=True
  175. warn_return_any=True
  176. no_implicit_reexport=True
  177. ; Set this to skip until more of the codebase is typed
  178. [mypy-sentry.*]
  179. follow_imports = skip
  180. [mypy-celery.*]
  181. ignore_missing_imports = True
  182. [mypy-confluent_kafka.*]
  183. ignore_missing_imports = True
  184. [mypy-django.*]
  185. ignore_missing_imports = True
  186. [mypy-docker.*]
  187. ignore_missing_imports = True
  188. [mypy-google.*]
  189. ignore_missing_imports = True
  190. [mypy-honcho.*]
  191. ignore_missing_imports = True
  192. [mypy-kombu]
  193. ignore_missing_imports = True
  194. [mypy-mistune.*]
  195. ignore_missing_imports = True
  196. [mypy-parsimonious.*]
  197. ignore_missing_imports = True
  198. [mypy-rb.*]
  199. ignore_missing_imports = True
  200. [mypy-rest_framework.*]
  201. ignore_missing_imports = True
  202. [mypy-sentry_relay.*]
  203. ignore_missing_imports = True
  204. [mypy-toronado]
  205. ignore_missing_imports = True
  206. [mypy-unidiff]
  207. ignore_missing_imports = True
  208. [mypy-msgpack]
  209. ignore_missing_imports = True
  210. [mypy-rapidjson]
  211. ignore_missing_imports = True
  212. # TODO: these cause type errors when followed
  213. [mypy-snuba_sdk.*]
  214. follow_imports = skip
  215. # this package marks itself as typed but has no annotations
  216. [mypy-google.cloud.bigtable.*]
  217. follow_imports = skip
  218. # https://github.com/googleapis/python-api-core/pull/453
  219. [mypy-google.api_core.retry]
  220. follow_imports = skip