mypy.ini 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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/endpoints/external_team.py,
  7. src/sentry/api/endpoints/external_team_details.py,
  8. src/sentry/api/endpoints/external_user.py,
  9. src/sentry/api/endpoints/external_user_details.py,
  10. src/sentry/api/endpoints/organization_events_stats.py,
  11. src/sentry/api/endpoints/organization_events_trace.py,
  12. src/sentry/api/endpoints/project_app_store_connect_credentials.py,
  13. src/sentry/api/endpoints/project_codeowners.py,
  14. src/sentry/api/endpoints/team_issue_breakdown.py,
  15. src/sentry/api/endpoints/team_unresolved_issue_age.py,
  16. src/sentry/api/helpers/group_index/,
  17. src/sentry/api/serializers/base.py,
  18. src/sentry/api/serializers/models/external_actor.py,
  19. src/sentry/api/serializers/models/integration.py,
  20. src/sentry/api/serializers/models/notification_setting.py,
  21. src/sentry/api/serializers/models/organization_member.py,
  22. src/sentry/api/serializers/models/team.py,
  23. src/sentry/api/validators/external_actor.py,
  24. src/sentry/api/validators/notifications.py,
  25. src/sentry/constants.py,
  26. src/sentry/db/models/manager/,
  27. src/sentry/digests/,
  28. src/sentry/features/,
  29. src/sentry/grouping/result.py,
  30. src/sentry/grouping/strategies/base.py,
  31. src/sentry/grouping/strategies/legacy.py,
  32. src/sentry/grouping/strategies/message.py,
  33. src/sentry/grouping/strategies/newstyle.py,
  34. src/sentry/grouping/strategies/security.py,
  35. src/sentry/grouping/strategies/template.py,
  36. src/sentry/grouping/strategies/utils.py,
  37. src/sentry/integrations/base.py,
  38. src/sentry/integrations/github/,
  39. src/sentry/integrations/slack/,
  40. src/sentry/integrations/vsts/,
  41. src/sentry/killswitches.py,
  42. src/sentry/lang/native/appconnect.py,
  43. src/sentry/mail/notifications.py,
  44. src/sentry/models/debugfile.py,
  45. src/sentry/models/groupsubscription.py,
  46. src/sentry/models/options/,
  47. src/sentry/notifications/,
  48. src/sentry/processing/realtime_metrics/,
  49. src/sentry/ratelimits/,
  50. src/sentry/release_health/,
  51. src/sentry/roles/manager.py,
  52. src/sentry/search/base.py,
  53. src/sentry/search/events/builder.py,
  54. src/sentry/search/events/constants.py,
  55. src/sentry/search/snuba/,
  56. src/sentry/search/events/types.py,
  57. src/sentry/sentry_metrics/,
  58. src/sentry/shared_integrations/,
  59. src/sentry/snuba/outcomes.py,
  60. src/sentry/snuba/query_subscription_consumer.py,
  61. src/sentry/snuba/entity_subscription.py,
  62. src/sentry/spans/,
  63. src/sentry/tasks/app_store_connect.py,
  64. src/sentry/tasks/low_priority_symbolication.py,
  65. src/sentry/tasks/store.py,
  66. src/sentry/tasks/symbolication.py,
  67. src/sentry/tasks/update_user_reports.py,
  68. src/sentry/unmerge.py,
  69. src/sentry/utils/appleconnect/,
  70. src/sentry/utils/avatar.py,
  71. src/sentry/utils/codecs.py,
  72. src/sentry/utils/dates.py,
  73. src/sentry/utils/email/,
  74. src/sentry/utils/jwt.py,
  75. src/sentry/utils/kvstore,
  76. src/sentry/utils/outcomes.py,
  77. src/sentry/utils/time_window.py,
  78. src/sentry/web/decorators.py,
  79. tests/sentry/lang/native/test_appconnect.py,
  80. tests/sentry/processing/realtime_metrics/,
  81. tests/sentry/tasks/test_low_priority_symbolication.py,
  82. tests/sentry/utils/appleconnect/,
  83. src/sentry/apidocs/,
  84. src/sentry/api/serializers/models/user.py,
  85. src/sentry/api/serializers/models/organization.py
  86. ; Enable all options used with --strict
  87. warn_unused_configs=True
  88. disallow_any_generics=True
  89. disallow_subclassing_any=True
  90. disallow_untyped_calls=True
  91. disallow_untyped_defs=True
  92. disallow_incomplete_defs=True
  93. check_untyped_defs=True
  94. disallow_untyped_decorators=True
  95. no_implicit_optional=True
  96. warn_unused_ignores=True
  97. warn_redundant_casts=True
  98. warn_return_any=True
  99. no_implicit_reexport=True
  100. ; Set this to skip until more of the codebase is typed
  101. follow_imports = skip
  102. [mypy-bs4]
  103. ignore_missing_imports = True
  104. [mypy-celery.*]
  105. ignore_missing_imports = True
  106. [mypy-confluent_kafka.*]
  107. ignore_missing_imports = True
  108. [mypy-django.*]
  109. ignore_missing_imports = True
  110. [mypy-google.*]
  111. ignore_missing_imports = True
  112. [mypy-jsonschema]
  113. ignore_missing_imports = True
  114. [mypy-lxml]
  115. ignore_missing_imports = True
  116. [mypy-mistune.*]
  117. ignore_missing_imports = True
  118. [mypy-rb.*]
  119. ignore_missing_imports = True
  120. [mypy-rest_framework.*]
  121. ignore_missing_imports = True
  122. [mypy-sentry_relay.*]
  123. ignore_missing_imports = True
  124. [mypy-toronado]
  125. ignore_missing_imports = True
  126. [mypy-zstandard]
  127. ignore_missing_imports = True