mypy.ini 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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/notifications.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/roles/manager.py,
  70. src/sentry/rules/,
  71. src/sentry/search/base.py,
  72. src/sentry/search/events/builder.py,
  73. src/sentry/search/events/constants.py,
  74. src/sentry/search/events/types.py,
  75. src/sentry/search/snuba/,
  76. src/sentry/sentry_metrics/,
  77. src/sentry/shared_integrations/,
  78. src/sentry/snuba/entity_subscription.py,
  79. src/sentry/snuba/outcomes.py,
  80. src/sentry/snuba/query_subscription_consumer.py,
  81. src/sentry/snuba/metrics/fields/histogram.py,
  82. src/sentry/snuba/metrics/fields/base.py,
  83. src/sentry/snuba/metrics/naming_layer/,
  84. src/sentry/snuba/metrics/query.py,
  85. src/sentry/spans/,
  86. src/sentry/tasks/app_store_connect.py,
  87. src/sentry/tasks/low_priority_symbolication.py,
  88. src/sentry/tasks/store.py,
  89. src/sentry/tasks/symbolication.py,
  90. src/sentry/tasks/update_user_reports.py,
  91. src/sentry/unmerge.py,
  92. src/sentry/utils/appleconnect/,
  93. src/sentry/utils/avatar.py,
  94. src/sentry/utils/codecs.py,
  95. src/sentry/utils/committers.py,
  96. src/sentry/utils/cursors.py,
  97. src/sentry/utils/dates.py,
  98. src/sentry/utils/email/,
  99. src/sentry/utils/event_frames.py,
  100. src/sentry/utils/integrationdocs.py,
  101. src/sentry/utils/jwt.py,
  102. src/sentry/utils/kvstore,
  103. src/sentry/utils/metrics.py,
  104. src/sentry/utils/options.py,
  105. src/sentry/utils/outcomes.py,
  106. src/sentry/utils/patch_set.py,
  107. src/sentry/utils/services.py,
  108. src/sentry/utils/time_window.py,
  109. src/sentry/web/decorators.py,
  110. tests/sentry/lang/native/test_appconnect.py,
  111. tests/sentry/processing/realtime_metrics/,
  112. tests/sentry/tasks/test_low_priority_symbolication.py,
  113. tests/sentry/utils/appleconnect/,
  114. tools/
  115. ; Enable all options used with --strict
  116. warn_unused_configs=True
  117. disallow_any_generics=True
  118. disallow_subclassing_any=True
  119. disallow_untyped_calls=True
  120. disallow_untyped_defs=True
  121. disallow_incomplete_defs=True
  122. check_untyped_defs=True
  123. disallow_untyped_decorators=True
  124. no_implicit_optional=True
  125. warn_unused_ignores=True
  126. warn_redundant_casts=True
  127. warn_return_any=True
  128. no_implicit_reexport=True
  129. ; Set this to skip until more of the codebase is typed
  130. follow_imports = skip
  131. [mypy-bs4]
  132. ignore_missing_imports = True
  133. [mypy-celery.*]
  134. ignore_missing_imports = True
  135. [mypy-confluent_kafka.*]
  136. ignore_missing_imports = True
  137. [mypy-django.*]
  138. ignore_missing_imports = True
  139. [mypy-google.*]
  140. ignore_missing_imports = True
  141. [mypy-jsonschema]
  142. ignore_missing_imports = True
  143. [mypy-lxml]
  144. ignore_missing_imports = True
  145. [mypy-mistune.*]
  146. ignore_missing_imports = True
  147. [mypy-parsimonious.*]
  148. ignore_missing_imports = True
  149. [mypy-rb.*]
  150. ignore_missing_imports = True
  151. [mypy-rest_framework.*]
  152. ignore_missing_imports = True
  153. [mypy-sentry_relay.*]
  154. ignore_missing_imports = True
  155. [mypy-toronado]
  156. ignore_missing_imports = True
  157. [mypy-unidiff]
  158. ignore_missing_imports = True
  159. [mypy-msgpack]
  160. ignore_missing_imports = True
  161. [mypy-rapidjson]
  162. ignore_missing_imports = True
  163. [mypy-drf_spectacular.utils]
  164. follow_imports = normal