mypy.ini 2.0 KB

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