mypy.ini 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. [mypy]
  2. python_version = 3.6
  3. files = src/sentry/api/bases/external_actor.py,
  4. src/sentry/api/endpoints/project_codeowners.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/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/notifications.py,
  17. src/sentry/notifications/**/*.py,
  18. src/sentry/snuba/outcomes.py,
  19. src/sentry/snuba/query_subscription_consumer.py,
  20. src/sentry/utils/avatar.py,
  21. src/sentry/utils/codecs.py,
  22. src/sentry/utils/kvstore,
  23. src/sentry/utils/snql.py
  24. ; Enable all options used with --strict
  25. warn_unused_configs=True
  26. disallow_any_generics=True
  27. disallow_subclassing_any=True
  28. disallow_untyped_calls=True
  29. disallow_untyped_defs=True
  30. disallow_incomplete_defs=True
  31. check_untyped_defs=True
  32. disallow_untyped_decorators=True
  33. no_implicit_optional=True
  34. warn_redundant_casts=True
  35. warn_unused_ignores=True
  36. warn_return_any=True
  37. no_implicit_reexport=True
  38. ; Set this to skip until more of the codebase is typed
  39. follow_imports = skip
  40. [mypy-confluent_kafka.*]
  41. ignore_missing_imports = True
  42. [mypy-google.*]
  43. ignore_missing_imports = True
  44. [mypy-jsonschema]
  45. ignore_missing_imports = True
  46. [mypy-django.*]
  47. ignore_missing_imports = True
  48. [mypy-sentry_relay.*]
  49. ignore_missing_imports = True
  50. [mypy-zstandard]
  51. ignore_missing_imports = True
  52. [mypy-rest_framework.*]
  53. ignore_missing_imports = True