mypy.ini 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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/organization_events_stats.py,
  9. src/sentry/api/endpoints/organization_events_trace.py,
  10. src/sentry/api/endpoints/organization_measurements_meta.py,
  11. src/sentry/api/endpoints/project_app_store_connect_credentials.py,
  12. src/sentry/api/endpoints/team_issue_breakdown.py,
  13. src/sentry/api/endpoints/team_unresolved_issue_age.py,
  14. src/sentry/api/helpers/group_index/,
  15. src/sentry/api/serializers/base.py,
  16. src/sentry/api/serializers/models/external_actor.py,
  17. src/sentry/api/serializers/models/integration.py,
  18. src/sentry/api/serializers/models/notification_setting.py,
  19. src/sentry/api/serializers/models/organization.py,
  20. src/sentry/api/serializers/models/organization_member/,
  21. src/sentry/api/serializers/models/releaseactivity.py,
  22. src/sentry/api/serializers/models/team.py,
  23. src/sentry/api/serializers/models/user.py,
  24. src/sentry/api/serializers/types.py,
  25. src/sentry/api/validators/external_actor.py,
  26. src/sentry/api/validators/notifications.py,
  27. src/sentry/apidocs/,
  28. src/sentry/constants.py,
  29. src/sentry/db/models/base.py,
  30. src/sentry/db/models/fields/bounded.py,
  31. src/sentry/db/models/fields/foreignkey.py,
  32. src/sentry/db/models/fields/onetoone.py,
  33. src/sentry/db/models/fields/text.py,
  34. src/sentry/db/models/manager/,
  35. src/sentry/db/models/paranoia.py,
  36. src/sentry/db/models/query.py,
  37. src/sentry/db/models/utils.py,
  38. src/sentry/digests/,
  39. src/sentry/features/,
  40. src/sentry/grouping/result.py,
  41. src/sentry/grouping/strategies/base.py,
  42. src/sentry/grouping/strategies/legacy.py,
  43. src/sentry/grouping/strategies/message.py,
  44. src/sentry/grouping/strategies/newstyle.py,
  45. src/sentry/grouping/strategies/security.py,
  46. src/sentry/grouping/strategies/template.py,
  47. src/sentry/grouping/strategies/utils.py,
  48. src/sentry/incidents/charts.py,
  49. src/sentry/integrations/base.py,
  50. src/sentry/integrations/github/,
  51. src/sentry/integrations/slack/,
  52. src/sentry/integrations/message_builder.py,
  53. src/sentry/integrations/vsts/,
  54. src/sentry/killswitches.py,
  55. src/sentry/lang/native/appconnect.py,
  56. src/sentry/mail/notifications.py,
  57. src/sentry/models/debugfile.py,
  58. src/sentry/models/groupsubscription.py,
  59. src/sentry/models/options/,
  60. src/sentry/models/rulefirehistory.py,
  61. src/sentry/notifications/,
  62. src/sentry/ownership/grammar.py,
  63. src/sentry/pipeline/,
  64. src/sentry/processing/realtime_metrics/,
  65. src/sentry/profiles/,
  66. src/sentry/ratelimits/,
  67. src/sentry/relay/config/metric_extraction.py,
  68. src/sentry/release_health/,
  69. src/sentry/replays/consumers/,
  70. src/sentry/roles/manager.py,
  71. src/sentry/rules/,
  72. src/sentry/search/base.py,
  73. src/sentry/search/events/builder.py,
  74. src/sentry/search/events/constants.py,
  75. src/sentry/search/events/types.py,
  76. src/sentry/search/snuba/,
  77. src/sentry/sentry_metrics/,
  78. src/sentry/servermode.py,
  79. src/sentry/shared_integrations/,
  80. src/sentry/snuba/entity_subscription.py,
  81. src/sentry/snuba/outcomes.py,
  82. src/sentry/snuba/query_subscription_consumer.py,
  83. src/sentry/snuba/metrics/fields/histogram.py,
  84. src/sentry/snuba/metrics/fields/base.py,
  85. src/sentry/snuba/metrics/naming_layer/,
  86. src/sentry/snuba/metrics/query.py,
  87. src/sentry/spans/,
  88. src/sentry/tasks/app_store_connect.py,
  89. src/sentry/tasks/low_priority_symbolication.py,
  90. src/sentry/tasks/store.py,
  91. src/sentry/tasks/symbolication.py,
  92. src/sentry/tasks/update_user_reports.py,
  93. src/sentry/unmerge.py,
  94. src/sentry/utils/appleconnect/,
  95. src/sentry/utils/avatar.py,
  96. src/sentry/utils/codecs.py,
  97. src/sentry/utils/committers.py,
  98. src/sentry/utils/cursors.py,
  99. src/sentry/utils/dates.py,
  100. src/sentry/utils/email/,
  101. src/sentry/utils/event_frames.py,
  102. src/sentry/utils/integrationdocs.py,
  103. src/sentry/utils/jwt.py,
  104. src/sentry/utils/kvstore,
  105. src/sentry/utils/metrics.py,
  106. src/sentry/utils/options.py,
  107. src/sentry/utils/outcomes.py,
  108. src/sentry/utils/patch_set.py,
  109. src/sentry/utils/services.py,
  110. src/sentry/utils/time_window.py,
  111. src/sentry/web/decorators.py,
  112. tests/sentry/lang/native/test_appconnect.py,
  113. tests/sentry/processing/realtime_metrics/,
  114. tests/sentry/tasks/test_low_priority_symbolication.py,
  115. tests/sentry/utils/appleconnect/,
  116. tools/
  117. show_error_codes = true
  118. ; Enable all options used with --strict
  119. warn_unused_configs=True
  120. disallow_any_generics=True
  121. disallow_subclassing_any=True
  122. disallow_untyped_calls=True
  123. disallow_untyped_defs=True
  124. disallow_incomplete_defs=True
  125. check_untyped_defs=True
  126. disallow_untyped_decorators=True
  127. no_implicit_optional=True
  128. warn_unused_ignores=True
  129. warn_redundant_casts=True
  130. warn_return_any=True
  131. no_implicit_reexport=True
  132. ; Set this to skip until more of the codebase is typed
  133. follow_imports = skip
  134. [mypy-bs4]
  135. ignore_missing_imports = True
  136. [mypy-celery.*]
  137. ignore_missing_imports = True
  138. [mypy-confluent_kafka.*]
  139. ignore_missing_imports = True
  140. [mypy-django.*]
  141. ignore_missing_imports = True
  142. [mypy-google.*]
  143. ignore_missing_imports = True
  144. [mypy-jsonschema]
  145. ignore_missing_imports = True
  146. [mypy-lxml]
  147. ignore_missing_imports = True
  148. [mypy-mistune.*]
  149. ignore_missing_imports = True
  150. [mypy-parsimonious.*]
  151. ignore_missing_imports = True
  152. [mypy-rb.*]
  153. ignore_missing_imports = True
  154. [mypy-rest_framework.*]
  155. ignore_missing_imports = True
  156. [mypy-sentry_relay.*]
  157. ignore_missing_imports = True
  158. [mypy-toronado]
  159. ignore_missing_imports = True
  160. [mypy-unidiff]
  161. ignore_missing_imports = True
  162. [mypy-msgpack]
  163. ignore_missing_imports = True
  164. [mypy-rapidjson]
  165. ignore_missing_imports = True
  166. [mypy-drf_spectacular.utils]
  167. follow_imports = normal