pyproject.toml 26 KB

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