pyproject.toml 26 KB

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