pyproject.toml 26 KB

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