pyproject.toml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. [build-system]
  2. requires = ["setuptools>=40.2.0,<64.0.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [tool.black]
  5. # File filtering is taken care of in pre-commit.
  6. line-length = 100
  7. target-version = ['py311']
  8. [tool.isort]
  9. profile = "black"
  10. line_length = 100
  11. lines_between_sections = 1
  12. known_first_party = "sentry"
  13. skip = "migrations"
  14. [tool.pytest.ini_options]
  15. python_files = "test_*.py sentry/testutils/*"
  16. # note: When updating the traceback format, make sure to update .github/pytest.json
  17. # We don't use the celery pytest plugin.
  18. addopts = "--tb=short -p no:celery --nomigrations"
  19. # TODO: --import-mode=importlib will become the default soon,
  20. # currently we have a few relative imports that don't work with that.
  21. markers = [
  22. "snuba: test requires access to snuba",
  23. "snuba_ci: test is run in snuba ci",
  24. "sentry_metrics: test requires access to sentry metrics",
  25. "symbolicator: test requires access to symbolicator",
  26. ]
  27. filterwarnings = [
  28. # Consider all warnings to be errors other than the ignored ones.
  29. "error",
  30. # a bunch of google packages use legacy namespace packages
  31. "ignore:pkg_resources is deprecated as an API",
  32. "ignore:Deprecated call to `pkg_resources.declare_namespace\\('google.*'\\)`.",
  33. # this warning in protobuf causes a segfault in 3.12+ protocolbuffers/protobuf#15077
  34. "ignore:Type google\\._upb.*",
  35. # The following warning filters are for pytest only.
  36. "ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
  37. # pytest has not yet implemented the replacement for this yet
  38. "ignore:The --looponfail command line argument.*",
  39. ]
  40. looponfailroots = ["src", "tests"]
  41. [tool.mypy]
  42. python_version = "3.11"
  43. mypy_path = ["fixtures/stubs-for-mypy"]
  44. plugins = [
  45. "pydantic.mypy",
  46. "mypy_django_plugin.main",
  47. "tools.mypy_helpers.plugin",
  48. ]
  49. files = ["."]
  50. exclude = ["^.venv/", "^venv/", "^self-hosted/"]
  51. # minimal strictness settings
  52. check_untyped_defs = true
  53. no_implicit_reexport = true
  54. warn_unreachable = true
  55. warn_unused_configs = true
  56. warn_unused_ignores = true
  57. warn_redundant_casts = true
  58. enable_error_code = ["ignore-without-code", "redundant-self"]
  59. [tool.django-stubs]
  60. django_settings_module = "sentry.conf.server_mypy"
  61. # these have py.typed but incorrect types
  62. [[tool.mypy.overrides]]
  63. module = [
  64. # TODO: these cause type errors when followed
  65. "snuba_sdk.*",
  66. ]
  67. follow_imports = "skip"
  68. # python3 -m tools.mypy_helpers.make_stub_ignores
  69. # begin: missing 3rd party stubs
  70. # - add .pyi files to fixtures/stubs-for-mypy
  71. # - or find a 3rd party stub
  72. [[tool.mypy.overrides]]
  73. module = [
  74. "boto3.*",
  75. "botocore.client.*",
  76. "botocore.exceptions.*",
  77. "celery.*",
  78. "confluent_kafka.*",
  79. "cssselect.*",
  80. "django_zero_downtime_migrations.backends.postgres.schema.*",
  81. "docker.*",
  82. "fido2.*",
  83. "google.auth.*",
  84. "google.cloud.*",
  85. "google.resumable_media.common.*",
  86. "google.rpc.status_pb2.*",
  87. "kombu.*",
  88. "mistune.*",
  89. "onelogin.saml2.auth.*",
  90. "onelogin.saml2.constants.*",
  91. "onelogin.saml2.idp_metadata_parser.*",
  92. "phabricator.*",
  93. "rb.*",
  94. "requests_oauthlib.*",
  95. "sqlparse.*",
  96. "statsd.*",
  97. "u2flib_server.model.*",
  98. "unidiff.*",
  99. ]
  100. ignore_missing_imports = true
  101. # end: missing 3rd party stubs
  102. # python3 -m tools.mypy_helpers.make_module_ignores
  103. # begin: sentry modules with typing issues
  104. # - remove the module from the list and fix the issues!
  105. # - python3 -m tools.mypy_helpers.find_easiest_modules
  106. [[tool.mypy.overrides]]
  107. module = [
  108. "sentry.api.base",
  109. "sentry.api.bases.external_actor",
  110. "sentry.api.bases.incident",
  111. "sentry.api.bases.integration",
  112. "sentry.api.bases.organization_events",
  113. "sentry.api.bases.organization_request_change",
  114. "sentry.api.bases.organizationmember",
  115. "sentry.api.bases.project",
  116. "sentry.api.bases.project_request_change",
  117. "sentry.api.bases.rule",
  118. "sentry.api.bases.sentryapps",
  119. "sentry.api.bases.team",
  120. "sentry.api.endpoints.accept_organization_invite",
  121. "sentry.api.endpoints.artifact_lookup",
  122. "sentry.api.endpoints.auth_config",
  123. "sentry.api.endpoints.auth_login",
  124. "sentry.api.endpoints.catchall",
  125. "sentry.api.endpoints.chunk",
  126. "sentry.api.endpoints.codeowners",
  127. "sentry.api.endpoints.codeowners.index",
  128. "sentry.api.endpoints.event_attachments",
  129. "sentry.api.endpoints.group_external_issues",
  130. "sentry.api.endpoints.group_integration_details",
  131. "sentry.api.endpoints.group_integrations",
  132. "sentry.api.endpoints.index",
  133. "sentry.api.endpoints.integrations.install_request",
  134. "sentry.api.endpoints.integrations.sentry_apps.details",
  135. "sentry.api.endpoints.integrations.sentry_apps.index",
  136. "sentry.api.endpoints.integrations.sentry_apps.installation.index",
  137. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.index",
  138. "sentry.api.endpoints.integrations.sentry_apps.publish_request",
  139. "sentry.api.endpoints.integrations.sentry_apps.requests",
  140. "sentry.api.endpoints.integrations.sentry_apps.stats.details",
  141. "sentry.api.endpoints.internal.mail",
  142. "sentry.api.endpoints.notifications.notification_actions_details",
  143. "sentry.api.endpoints.organization_code_mapping_codeowners",
  144. "sentry.api.endpoints.organization_code_mapping_details",
  145. "sentry.api.endpoints.organization_code_mappings",
  146. "sentry.api.endpoints.organization_dashboard_details",
  147. "sentry.api.endpoints.organization_details",
  148. "sentry.api.endpoints.organization_events",
  149. "sentry.api.endpoints.organization_events_facets",
  150. "sentry.api.endpoints.organization_events_facets_performance",
  151. "sentry.api.endpoints.organization_events_meta",
  152. "sentry.api.endpoints.organization_events_spans_performance",
  153. "sentry.api.endpoints.organization_events_stats",
  154. "sentry.api.endpoints.organization_events_trace",
  155. "sentry.api.endpoints.organization_events_trends",
  156. "sentry.api.endpoints.organization_index",
  157. "sentry.api.endpoints.organization_issues_count",
  158. "sentry.api.endpoints.organization_member.details",
  159. "sentry.api.endpoints.organization_member.index",
  160. "sentry.api.endpoints.organization_member.requests.invite.details",
  161. "sentry.api.endpoints.organization_member_unreleased_commits",
  162. "sentry.api.endpoints.organization_metrics",
  163. "sentry.api.endpoints.organization_metrics_meta",
  164. "sentry.api.endpoints.organization_onboarding_continuation_email",
  165. "sentry.api.endpoints.organization_projects",
  166. "sentry.api.endpoints.organization_projects_experiment",
  167. "sentry.api.endpoints.organization_releases",
  168. "sentry.api.endpoints.organization_repositories",
  169. "sentry.api.endpoints.organization_request_project_creation",
  170. "sentry.api.endpoints.organization_search_details",
  171. "sentry.api.endpoints.organization_sessions",
  172. "sentry.api.endpoints.organization_stats",
  173. "sentry.api.endpoints.organization_teams",
  174. "sentry.api.endpoints.project_artifact_bundle_file_details",
  175. "sentry.api.endpoints.project_event_details",
  176. "sentry.api.endpoints.project_group_index",
  177. "sentry.api.endpoints.project_index",
  178. "sentry.api.endpoints.project_ownership",
  179. "sentry.api.endpoints.project_release_files",
  180. "sentry.api.endpoints.project_repo_path_parsing",
  181. "sentry.api.endpoints.project_rule_preview",
  182. "sentry.api.endpoints.project_rules_configuration",
  183. "sentry.api.endpoints.project_servicehook_stats",
  184. "sentry.api.endpoints.project_transaction_names",
  185. "sentry.api.endpoints.rule_snooze",
  186. "sentry.api.endpoints.team_details",
  187. "sentry.api.endpoints.team_release_count",
  188. "sentry.api.endpoints.team_time_to_resolution",
  189. "sentry.api.endpoints.user_details",
  190. "sentry.api.endpoints.user_subscriptions",
  191. "sentry.api.event_search",
  192. "sentry.api.helpers.deprecation",
  193. "sentry.api.helpers.group_index.index",
  194. "sentry.api.helpers.group_index.update",
  195. "sentry.api.invite_helper",
  196. "sentry.api.issue_search",
  197. "sentry.api.paginator",
  198. "sentry.api.permissions",
  199. "sentry.api.serializers.models.auth_provider",
  200. "sentry.api.serializers.models.dashboard",
  201. "sentry.api.serializers.models.doc_integration",
  202. "sentry.api.serializers.models.environment",
  203. "sentry.api.serializers.models.event",
  204. "sentry.api.serializers.models.external_actor",
  205. "sentry.api.serializers.models.group",
  206. "sentry.api.serializers.models.group_stream",
  207. "sentry.api.serializers.models.incident",
  208. "sentry.api.serializers.models.integration",
  209. "sentry.api.serializers.models.integration_feature",
  210. "sentry.api.serializers.models.notification_action",
  211. "sentry.api.serializers.models.organization",
  212. "sentry.api.serializers.models.organization_member.base",
  213. "sentry.api.serializers.models.plugin",
  214. "sentry.api.serializers.models.project",
  215. "sentry.api.serializers.models.role",
  216. "sentry.api.serializers.models.rule",
  217. "sentry.api.serializers.models.sentry_app",
  218. "sentry.api.serializers.models.team",
  219. "sentry.api.serializers.models.user",
  220. "sentry.api.serializers.models.user_identity_config",
  221. "sentry.api.serializers.rest_framework.doc_integration",
  222. "sentry.api.serializers.rest_framework.mentions",
  223. "sentry.api.serializers.rest_framework.notification_action",
  224. "sentry.api.serializers.rest_framework.rule",
  225. "sentry.api.serializers.rest_framework.sentry_app_request",
  226. "sentry.api.serializers.snuba",
  227. "sentry.api.validators.email",
  228. "sentry.auth.helper",
  229. "sentry.auth.provider",
  230. "sentry.auth.providers.dummy",
  231. "sentry.auth.providers.github.views",
  232. "sentry.auth.providers.google.views",
  233. "sentry.auth.providers.oauth2",
  234. "sentry.auth.providers.saml2.generic.views",
  235. "sentry.auth.providers.saml2.provider",
  236. "sentry.auth.providers.saml2.rippling.provider",
  237. "sentry.auth.providers.saml2.views",
  238. "sentry.auth.system",
  239. "sentry.auth.view",
  240. "sentry.db.mixin",
  241. "sentry.db.models.manager.base",
  242. "sentry.db.models.paranoia",
  243. "sentry.db.models.query",
  244. "sentry.db.models.utils",
  245. "sentry.db.postgres.base",
  246. "sentry.db.router",
  247. "sentry.digests.notifications",
  248. "sentry.discover.endpoints.discover_key_transactions",
  249. "sentry.eventstore.models",
  250. "sentry.features.handler",
  251. "sentry.features.manager",
  252. "sentry.grouping.fingerprinting",
  253. "sentry.grouping.strategies.hierarchical",
  254. "sentry.grouping.strategies.legacy",
  255. "sentry.grouping.strategies.newstyle",
  256. "sentry.identity.bitbucket.provider",
  257. "sentry.identity.github_enterprise.provider",
  258. "sentry.identity.gitlab.provider",
  259. "sentry.identity.oauth2",
  260. "sentry.identity.pipeline",
  261. "sentry.identity.providers.dummy",
  262. "sentry.identity.slack.provider",
  263. "sentry.incidents.endpoints.bases",
  264. "sentry.incidents.endpoints.organization_alert_rule_details",
  265. "sentry.incidents.endpoints.organization_alert_rule_index",
  266. "sentry.incidents.endpoints.organization_incident_comment_details",
  267. "sentry.incidents.endpoints.organization_incident_index",
  268. "sentry.incidents.logic",
  269. "sentry.incidents.subscription_processor",
  270. "sentry.incidents.tasks",
  271. "sentry.integrations.aws_lambda.integration",
  272. "sentry.integrations.base",
  273. "sentry.integrations.bitbucket.client",
  274. "sentry.integrations.bitbucket.installed",
  275. "sentry.integrations.bitbucket.integration",
  276. "sentry.integrations.bitbucket.issues",
  277. "sentry.integrations.bitbucket.uninstalled",
  278. "sentry.integrations.bitbucket.webhook",
  279. "sentry.integrations.bitbucket_server.client",
  280. "sentry.integrations.bitbucket_server.integration",
  281. "sentry.integrations.bitbucket_server.webhook",
  282. "sentry.integrations.example.integration",
  283. "sentry.integrations.example.repository",
  284. "sentry.integrations.github.client",
  285. "sentry.integrations.github.integration",
  286. "sentry.integrations.github.issues",
  287. "sentry.integrations.github.repository",
  288. "sentry.integrations.github.webhook",
  289. "sentry.integrations.github_enterprise.integration",
  290. "sentry.integrations.github_enterprise.webhook",
  291. "sentry.integrations.gitlab.client",
  292. "sentry.integrations.gitlab.integration",
  293. "sentry.integrations.gitlab.issues",
  294. "sentry.integrations.gitlab.webhooks",
  295. "sentry.integrations.jira.actions.form",
  296. "sentry.integrations.jira.client",
  297. "sentry.integrations.jira.integration",
  298. "sentry.integrations.jira.views.base",
  299. "sentry.integrations.jira.views.sentry_issue_details",
  300. "sentry.integrations.jira.webhooks.base",
  301. "sentry.integrations.jira.webhooks.issue_updated",
  302. "sentry.integrations.jira_server.client",
  303. "sentry.integrations.jira_server.integration",
  304. "sentry.integrations.jira_server.webhooks",
  305. "sentry.integrations.manager",
  306. "sentry.integrations.message_builder",
  307. "sentry.integrations.metric_alerts",
  308. "sentry.integrations.mixins.issues",
  309. "sentry.integrations.mixins.notifications",
  310. "sentry.integrations.mixins.repositories",
  311. "sentry.integrations.msteams.actions.form",
  312. "sentry.integrations.msteams.client",
  313. "sentry.integrations.msteams.integration",
  314. "sentry.integrations.msteams.link_identity",
  315. "sentry.integrations.msteams.notifications",
  316. "sentry.integrations.msteams.webhook",
  317. "sentry.integrations.notifications",
  318. "sentry.integrations.pagerduty.actions.form",
  319. "sentry.integrations.pagerduty.client",
  320. "sentry.integrations.pagerduty.integration",
  321. "sentry.integrations.pipeline",
  322. "sentry.integrations.slack.actions.form",
  323. "sentry.integrations.slack.client",
  324. "sentry.integrations.slack.integration",
  325. "sentry.integrations.slack.message_builder.issues",
  326. "sentry.integrations.slack.message_builder.notifications.digest",
  327. "sentry.integrations.slack.message_builder.notifications.issues",
  328. "sentry.integrations.slack.notifications",
  329. "sentry.integrations.slack.unfurl.discover",
  330. "sentry.integrations.slack.utils.channel",
  331. "sentry.integrations.slack.utils.users",
  332. "sentry.integrations.slack.views.link_identity",
  333. "sentry.integrations.slack.views.link_team",
  334. "sentry.integrations.slack.views.unlink_team",
  335. "sentry.integrations.slack.webhooks.action",
  336. "sentry.integrations.slack.webhooks.base",
  337. "sentry.integrations.slack.webhooks.command",
  338. "sentry.integrations.slack.webhooks.event",
  339. "sentry.integrations.utils.commit_context",
  340. "sentry.integrations.utils.sync",
  341. "sentry.integrations.vercel.client",
  342. "sentry.integrations.vercel.integration",
  343. "sentry.integrations.vercel.webhook",
  344. "sentry.integrations.vsts.client",
  345. "sentry.integrations.vsts.integration",
  346. "sentry.integrations.vsts.issues",
  347. "sentry.integrations.vsts.repository",
  348. "sentry.integrations.vsts_extension.integration",
  349. "sentry.issues.search",
  350. "sentry.middleware.access_log",
  351. "sentry.middleware.auth",
  352. "sentry.middleware.ratelimit",
  353. "sentry.middleware.superuser",
  354. "sentry.models.auditlogentry",
  355. "sentry.models.integrations.external_issue",
  356. "sentry.models.integrations.sentry_app_installation",
  357. "sentry.models.organizationaccessrequest",
  358. "sentry.monitors.consumers.monitor_consumer",
  359. "sentry.monitors.endpoints.base",
  360. "sentry.monitors.endpoints.monitor_ingest_checkin_attachment",
  361. "sentry.monitors.endpoints.organization_monitor_index",
  362. "sentry.net.http",
  363. "sentry.net.socket",
  364. "sentry.notifications.additional_attachment_manager",
  365. "sentry.notifications.notifications.activity.base",
  366. "sentry.notifications.notifications.activity.release",
  367. "sentry.notifications.notifications.integration_nudge",
  368. "sentry.notifications.notifications.rules",
  369. "sentry.ownership.grammar",
  370. "sentry.pipeline.base",
  371. "sentry.pipeline.views.base",
  372. "sentry.pipeline.views.nested",
  373. "sentry.plugins.base.notifier",
  374. "sentry.plugins.base.urls",
  375. "sentry.plugins.bases.data_forwarding",
  376. "sentry.plugins.bases.issue",
  377. "sentry.plugins.bases.issue2",
  378. "sentry.plugins.bases.notify",
  379. "sentry.plugins.config",
  380. "sentry.plugins.endpoints",
  381. "sentry.plugins.providers.base",
  382. "sentry.plugins.providers.repository",
  383. "sentry.receivers.releases",
  384. "sentry.release_health.metrics_sessions_v2",
  385. "sentry.release_health.tasks",
  386. "sentry.replays.endpoints.project_replay_clicks_index",
  387. "sentry.replays.lib.query",
  388. "sentry.rules.actions.integrations.base",
  389. "sentry.rules.actions.integrations.create_ticket.form",
  390. "sentry.rules.actions.integrations.create_ticket.utils",
  391. "sentry.rules.actions.notify_event_service",
  392. "sentry.rules.filters.assigned_to",
  393. "sentry.rules.history.preview",
  394. "sentry.scim.endpoints.members",
  395. "sentry.scim.endpoints.teams",
  396. "sentry.scim.endpoints.utils",
  397. "sentry.search.events.builder.discover",
  398. "sentry.search.events.builder.errors",
  399. "sentry.search.events.builder.metrics",
  400. "sentry.search.events.datasets.discover",
  401. "sentry.search.events.datasets.filter_aliases",
  402. "sentry.search.events.datasets.function_aliases",
  403. "sentry.search.events.datasets.metrics",
  404. "sentry.search.events.datasets.metrics_layer",
  405. "sentry.search.events.datasets.profile_functions",
  406. "sentry.search.events.datasets.profiles",
  407. "sentry.search.events.datasets.spans_metrics",
  408. "sentry.search.events.fields",
  409. "sentry.search.events.filter",
  410. "sentry.search.snuba.backend",
  411. "sentry.search.snuba.executors",
  412. "sentry.search.utils",
  413. "sentry.sentry_apps.apps",
  414. "sentry.sentry_apps.installations",
  415. "sentry.sentry_metrics.configuration",
  416. "sentry.sentry_metrics.consumers.indexer.slicing_router",
  417. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  418. "sentry.shared_integrations.client.base",
  419. "sentry.shared_integrations.client.proxy",
  420. "sentry.similarity.features",
  421. "sentry.snuba.discover",
  422. "sentry.snuba.errors",
  423. "sentry.snuba.issue_platform",
  424. "sentry.snuba.metrics.datasource",
  425. "sentry.snuba.metrics.fields.base",
  426. "sentry.snuba.metrics.query_builder",
  427. "sentry.snuba.sessions_v2",
  428. "sentry.snuba.spans_indexed",
  429. "sentry.snuba.spans_metrics",
  430. "sentry.tagstore.snuba.backend",
  431. "sentry.tagstore.types",
  432. "sentry.tasks.auth",
  433. "sentry.tasks.base",
  434. "sentry.tasks.codeowners.update_code_owners_schema",
  435. "sentry.tasks.integrations",
  436. "sentry.tasks.integrations.migrate_issues",
  437. "sentry.tasks.integrations.migrate_repo",
  438. "sentry.tasks.integrations.slack.find_channel_id_for_rule",
  439. "sentry.tasks.integrations.slack.link_slack_user_identities",
  440. "sentry.tasks.integrations.sync_assignee_outbound_impl",
  441. "sentry.tasks.integrations.sync_status_inbound",
  442. "sentry.tasks.integrations.sync_status_outbound",
  443. "sentry.tasks.process_buffer",
  444. "sentry.tasks.sentry_apps",
  445. "sentry.tasks.store",
  446. "sentry.templatetags.sentry_assets",
  447. "sentry.templatetags.sentry_helpers",
  448. "sentry.templatetags.sentry_plugins",
  449. "sentry.testutils.asserts",
  450. "sentry.testutils.cases",
  451. "sentry.testutils.fixtures",
  452. "sentry.testutils.helpers.features",
  453. "sentry.testutils.helpers.notifications",
  454. "sentry.testutils.helpers.slack",
  455. "sentry.testutils.helpers.task_runner",
  456. "sentry.tsdb.dummy",
  457. "sentry.tsdb.inmemory",
  458. "sentry.types.integrations",
  459. "sentry.utils.auth",
  460. "sentry.utils.committers",
  461. "sentry.utils.distutils.commands.base",
  462. "sentry.utils.distutils.commands.build_assets",
  463. "sentry.utils.locking.backends.migration",
  464. "sentry.utils.sentry_apps.webhooks",
  465. "sentry.utils.services",
  466. "sentry.utils.snowflake",
  467. "sentry.web.forms.accounts",
  468. "sentry.web.frontend.account_identity",
  469. "sentry.web.frontend.auth_close",
  470. "sentry.web.frontend.auth_login",
  471. "sentry.web.frontend.auth_logout",
  472. "sentry.web.frontend.auth_organization_login",
  473. "sentry.web.frontend.auth_provider_login",
  474. "sentry.web.frontend.base",
  475. "sentry.web.frontend.debug.debug_codeowners_auto_sync_failure_email",
  476. "sentry.web.frontend.debug.debug_incident_activity_email",
  477. "sentry.web.frontend.debug.debug_incident_trigger_email",
  478. "sentry.web.frontend.debug.debug_mfa_added_email",
  479. "sentry.web.frontend.debug.debug_mfa_removed_email",
  480. "sentry.web.frontend.debug.debug_new_processing_issues_email",
  481. "sentry.web.frontend.debug.debug_organization_integration_request",
  482. "sentry.web.frontend.debug.debug_organization_invite_request",
  483. "sentry.web.frontend.debug.debug_organization_join_request",
  484. "sentry.web.frontend.disabled_member_view",
  485. "sentry.web.frontend.generic",
  486. "sentry.web.frontend.group_plugin_action",
  487. "sentry.web.frontend.idp_email_verification",
  488. "sentry.web.frontend.integration_extension_configuration",
  489. "sentry.web.frontend.js_sdk_loader",
  490. "sentry.web.frontend.newest_issue",
  491. "sentry.web.frontend.oauth_authorize",
  492. "sentry.web.frontend.oauth_token",
  493. "sentry.web.frontend.organization_integration_setup",
  494. "sentry.web.frontend.pipeline_advancer",
  495. "sentry.web.frontend.project_event",
  496. "sentry.web.frontend.react_page",
  497. "sentry.web.frontend.reactivate_account",
  498. "sentry.web.frontend.setup_wizard",
  499. "sentry.web.frontend.shared_group_details",
  500. "sentry.web.frontend.twofactor",
  501. "sentry_plugins.bitbucket.client",
  502. "sentry_plugins.bitbucket.mixins",
  503. "sentry_plugins.github.plugin",
  504. "sentry_plugins.jira.plugin",
  505. "tests.sentry.api.bases.test_organization",
  506. "tests.sentry.api.bases.test_project",
  507. "tests.sentry.api.bases.test_sentryapps",
  508. "tests.sentry.api.bases.test_team",
  509. "tests.sentry.api.endpoints.notifications.test_notification_actions_details",
  510. "tests.sentry.api.endpoints.notifications.test_notification_actions_index",
  511. "tests.sentry.api.endpoints.test_event_attachment_details",
  512. "tests.sentry.api.helpers.test_group_index",
  513. "tests.sentry.api.test_authentication",
  514. "tests.sentry.api.test_base",
  515. "tests.sentry.api.test_event_search",
  516. "tests.sentry.digests.test_notifications",
  517. "tests.sentry.eventstore.test_base",
  518. "tests.sentry.grouping.test_result",
  519. "tests.sentry.identity.test_oauth2",
  520. "tests.sentry.incidents.test_logic",
  521. "tests.sentry.ingest.test_slicing",
  522. "tests.sentry.integrations.github.test_client",
  523. "tests.sentry.integrations.slack.test_requests",
  524. "tests.sentry.issues.test_utils",
  525. "tests.sentry.models.test_organizationmember",
  526. "tests.sentry.replays.test_project_replay_recording_segment_index",
  527. "tests.sentry.tasks.test_post_process",
  528. ]
  529. disable_error_code = [
  530. "arg-type",
  531. "assignment",
  532. "attr-defined",
  533. "call-arg",
  534. "call-overload",
  535. "dict-item",
  536. "has-type",
  537. "index",
  538. "list-item",
  539. "misc",
  540. "operator",
  541. "override",
  542. "return-value",
  543. "typeddict-item",
  544. "typeddict-unknown-key",
  545. "union-attr",
  546. "unreachable",
  547. "var-annotated",
  548. ]
  549. # end: sentry modules with typing issues
  550. # begin: stronger typing
  551. [[tool.mypy.overrides]]
  552. module = [
  553. "sentry.api.endpoints.issues.*",
  554. "sentry.api.helpers.source_map_helper",
  555. "sentry.buffer.base",
  556. "sentry.buffer.redis",
  557. "sentry.eventstore.reprocessing.redis",
  558. "sentry.issues.related.*",
  559. "sentry.lang.java.processing",
  560. "sentry.llm.*",
  561. "sentry.migrations.*",
  562. "sentry.nodestore.base",
  563. "sentry.nodestore.bigtable.backend",
  564. "sentry.nodestore.django.backend",
  565. "sentry.nodestore.django.models",
  566. "sentry.nodestore.filesystem.backend",
  567. "sentry.nodestore.models",
  568. "sentry.profiles.*",
  569. "sentry.relay.config.metric_extraction",
  570. "sentry.reprocessing2",
  571. "sentry.runner.*",
  572. "sentry.snuba.metrics.extraction",
  573. "sentry.tasks.commit_context",
  574. "sentry.tasks.on_demand_metrics",
  575. "sentry.tasks.reprocessing2",
  576. "sentry.utils.actor",
  577. "sentry.utils.arroyo",
  578. "sentry.utils.assets",
  579. "sentry.utils.audit",
  580. "sentry.utils.canonical",
  581. "sentry.utils.celery",
  582. "sentry.utils.codeowners",
  583. "sentry.utils.colors",
  584. "sentry.utils.email.*",
  585. "sentry.utils.env",
  586. "sentry.utils.event",
  587. "sentry.utils.files",
  588. "sentry.utils.iterators",
  589. "sentry.utils.javascript",
  590. "sentry.utils.locking.backends.redis",
  591. "sentry.utils.migrations",
  592. "sentry.utils.otp",
  593. "sentry.utils.redis",
  594. "sentry.utils.redis_metrics",
  595. "sentry.utils.sms",
  596. "sentry.utils.uwsgi",
  597. "sentry.utils.zip",
  598. "sentry_plugins.base",
  599. "tests.sentry.api.endpoints.issues.*",
  600. "tests.sentry.grouping.test_fingerprinting",
  601. "tests.sentry.relay.config.test_metric_extraction",
  602. "tests.sentry.tasks.test_on_demand_metrics",
  603. "tools.*",
  604. ]
  605. disallow_any_generics = true
  606. disallow_untyped_defs = true
  607. # end: stronger typing