pyproject.toml 25 KB

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