mypy.ini 4.5 KB

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