mypy.ini 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. [mypy]
  2. python_version = 3.6
  3. files = src/sentry/api/bases/external_actor.py,
  4. src/sentry/api/endpoints/external_team.py,
  5. src/sentry/api/endpoints/external_team_details.py,
  6. src/sentry/api/endpoints/external_user.py,
  7. src/sentry/api/endpoints/external_user_details.py,
  8. src/sentry/api/endpoints/organization_events_trace.py,
  9. src/sentry/api/endpoints/project_codeowners.py,
  10. src/sentry/api/serializers/base.py,
  11. src/sentry/api/serializers/models/external_actor.py,
  12. src/sentry/api/serializers/models/integration.py,
  13. src/sentry/api/serializers/models/notification_setting.py,
  14. src/sentry/api/serializers/models/organization_member.py,
  15. src/sentry/api/serializers/models/team.py,
  16. src/sentry/api/validators/external_actor.py,
  17. src/sentry/api/validators/notifications.py,
  18. src/sentry/grouping/strategies/base.py,
  19. src/sentry/grouping/strategies/message.py,
  20. src/sentry/integrations/slack/message_builder/**/*.py,
  21. src/sentry/integrations/slack/requests/*.py,
  22. src/sentry/integrations/slack/util/*.py,
  23. src/sentry/notifications/**/*.py,
  24. src/sentry/snuba/outcomes.py,
  25. src/sentry/snuba/query_subscription_consumer.py,
  26. src/sentry/utils/avatar.py,
  27. src/sentry/utils/codecs.py,
  28. src/sentry/killswitches.py,
  29. src/sentry/utils/dates.py,
  30. src/sentry/utils/kvstore,
  31. src/sentry/utils/snql.py,
  32. src/sentry/unmerge.py
  33. ; Enable all options used with --strict
  34. warn_unused_configs=True
  35. disallow_any_generics=True
  36. disallow_subclassing_any=True
  37. disallow_untyped_calls=True
  38. disallow_untyped_defs=True
  39. disallow_incomplete_defs=True
  40. check_untyped_defs=True
  41. disallow_untyped_decorators=True
  42. no_implicit_optional=True
  43. warn_redundant_casts=True
  44. warn_unused_ignores=True
  45. warn_return_any=True
  46. no_implicit_reexport=True
  47. ; Set this to skip until more of the codebase is typed
  48. follow_imports = skip
  49. [mypy-confluent_kafka.*]
  50. ignore_missing_imports = True
  51. [mypy-google.*]
  52. ignore_missing_imports = True
  53. [mypy-jsonschema]
  54. ignore_missing_imports = True
  55. [mypy-django.*]
  56. ignore_missing_imports = True
  57. [mypy-sentry_relay.*]
  58. ignore_missing_imports = True
  59. [mypy-zstandard]
  60. ignore_missing_imports = True
  61. [mypy-rest_framework.*]
  62. ignore_missing_imports = True