mypy.ini 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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/integrations/base.py,
  47. src/sentry/integrations/github/,
  48. src/sentry/integrations/slack/,
  49. src/sentry/integrations/vsts/,
  50. src/sentry/killswitches.py,
  51. src/sentry/lang/native/appconnect.py,
  52. src/sentry/mail/notifications.py,
  53. src/sentry/models/debugfile.py,
  54. src/sentry/models/groupsubscription.py,
  55. src/sentry/models/options/,
  56. src/sentry/models/rulefirehistory.py,
  57. src/sentry/notifications/,
  58. src/sentry/processing/realtime_metrics/,
  59. src/sentry/ratelimits/,
  60. src/sentry/release_health/,
  61. src/sentry/roles/manager.py,
  62. src/sentry/rules/conditions/,
  63. src/sentry/rules/filters/,
  64. src/sentry/rules/history/,
  65. src/sentry/search/base.py,
  66. src/sentry/search/events/builder.py,
  67. src/sentry/search/events/constants.py,
  68. src/sentry/search/events/types.py,
  69. src/sentry/search/snuba/,
  70. src/sentry/sentry_metrics/,
  71. src/sentry/shared_integrations/,
  72. src/sentry/snuba/entity_subscription.py,
  73. src/sentry/snuba/outcomes.py,
  74. src/sentry/snuba/query_subscription_consumer.py,
  75. src/sentry/spans/,
  76. src/sentry/tasks/app_store_connect.py,
  77. src/sentry/tasks/low_priority_symbolication.py,
  78. src/sentry/tasks/store.py,
  79. src/sentry/tasks/symbolication.py,
  80. src/sentry/tasks/update_user_reports.py,
  81. src/sentry/unmerge.py,
  82. src/sentry/utils/appleconnect/,
  83. src/sentry/utils/avatar.py,
  84. src/sentry/utils/codecs.py,
  85. src/sentry/utils/dates.py,
  86. src/sentry/utils/email/,
  87. src/sentry/utils/jwt.py,
  88. src/sentry/utils/kvstore,
  89. src/sentry/utils/outcomes.py,
  90. src/sentry/utils/services.py,
  91. src/sentry/utils/time_window.py,
  92. src/sentry/web/decorators.py,
  93. tests/sentry/lang/native/test_appconnect.py,
  94. tests/sentry/processing/realtime_metrics/,
  95. tests/sentry/tasks/test_low_priority_symbolication.py,
  96. tests/sentry/utils/appleconnect/
  97. ; Enable all options used with --strict
  98. warn_unused_configs=True
  99. disallow_any_generics=True
  100. disallow_subclassing_any=True
  101. disallow_untyped_calls=True
  102. disallow_untyped_defs=True
  103. disallow_incomplete_defs=True
  104. check_untyped_defs=True
  105. disallow_untyped_decorators=True
  106. no_implicit_optional=True
  107. warn_unused_ignores=True
  108. warn_redundant_casts=True
  109. warn_return_any=True
  110. no_implicit_reexport=True
  111. ; Set this to skip until more of the codebase is typed
  112. follow_imports = skip
  113. [mypy-bs4]
  114. ignore_missing_imports = True
  115. [mypy-celery.*]
  116. ignore_missing_imports = True
  117. [mypy-confluent_kafka.*]
  118. ignore_missing_imports = True
  119. [mypy-django.*]
  120. ignore_missing_imports = True
  121. [mypy-google.*]
  122. ignore_missing_imports = True
  123. [mypy-jsonschema]
  124. ignore_missing_imports = True
  125. [mypy-lxml]
  126. ignore_missing_imports = True
  127. [mypy-mistune.*]
  128. ignore_missing_imports = True
  129. [mypy-rb.*]
  130. ignore_missing_imports = True
  131. [mypy-rest_framework.*]
  132. ignore_missing_imports = True
  133. [mypy-sentry_relay.*]
  134. ignore_missing_imports = True
  135. [mypy-toronado]
  136. ignore_missing_imports = True
  137. [mypy-zstandard]
  138. ignore_missing_imports = True
  139. [mypy-drf_spectacular.utils]
  140. follow_imports = normal