mypy.ini 5.9 KB

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