mypy.ini 7.4 KB

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