pyproject.toml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661
  1. [tool.black]
  2. # File filtering is taken care of in pre-commit.
  3. line-length = 100
  4. target-version = ['py312']
  5. [tool.isort]
  6. profile = "black"
  7. line_length = 100
  8. lines_between_sections = 1
  9. known_first_party = "sentry"
  10. skip = "migrations"
  11. [tool.pytest.ini_options]
  12. python_files = "test_*.py sentry/testutils/*"
  13. # note: When updating the traceback format, make sure to update .github/pytest.json
  14. # We don't use the celery pytest plugin.
  15. addopts = "--tb=short -p no:celery --nomigrations"
  16. # TODO: --import-mode=importlib will become the default soon,
  17. # currently we have a few relative imports that don't work with that.
  18. markers = [
  19. "snuba: test requires access to snuba",
  20. "snuba_ci: test is run in snuba ci",
  21. "sentry_metrics: test requires access to sentry metrics",
  22. "symbolicator: test requires access to symbolicator",
  23. "querybuilder: smoke tests for QueryBuilders",
  24. ]
  25. filterwarnings = [
  26. # Consider all warnings to be errors other than the ignored ones.
  27. "error",
  28. # phabricator uses `pkg_resources` apis
  29. "ignore:pkg_resources is deprecated as an API",
  30. # this warning in protobuf causes a segfault in 3.12+ protocolbuffers/protobuf#15077
  31. "ignore:Type google\\._upb.*",
  32. # TODO: we should fix these, but for now there's a lot
  33. "ignore:datetime.datetime.utcfromtimestamp\\(\\) is deprecated.*",
  34. "ignore:datetime.datetime.utcnow\\(\\) is deprecated.*",
  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.12"
  43. mypy_path = ["fixtures/stubs-for-mypy"]
  44. plugins = [
  45. "pydantic.mypy",
  46. "mypy_django_plugin.main",
  47. "tools.mypy_helpers.plugin",
  48. ]
  49. files = ["."]
  50. exclude = ["^.venv/", "^venv/", "^self-hosted/"]
  51. # minimal strictness settings
  52. check_untyped_defs = true
  53. no_implicit_reexport = true
  54. warn_unreachable = true
  55. warn_unused_configs = true
  56. warn_unused_ignores = true
  57. warn_redundant_casts = true
  58. enable_error_code = ["ignore-without-code", "redundant-self"]
  59. [tool.django-stubs]
  60. django_settings_module = "sentry.conf.server_mypy"
  61. # these have py.typed but incorrect types
  62. [[tool.mypy.overrides]]
  63. module = [
  64. # TODO: these cause type errors when followed
  65. "snuba_sdk.*",
  66. ]
  67. follow_imports = "skip"
  68. # python3 -m tools.mypy_helpers.make_stub_ignores
  69. # begin: missing 3rd party stubs
  70. # - add .pyi files to fixtures/stubs-for-mypy
  71. # - or find a 3rd party stub
  72. [[tool.mypy.overrides]]
  73. module = [
  74. "boto3.*",
  75. "botocore.client.*",
  76. "botocore.exceptions.*",
  77. "celery.*",
  78. "confluent_kafka.*",
  79. "cssselect.*",
  80. "django_zero_downtime_migrations.backends.postgres.schema.*",
  81. "docker.*",
  82. "fido2.*",
  83. "google.auth.*",
  84. "google.cloud.*",
  85. "google.resumable_media.common.*",
  86. "google.rpc.status_pb2.*",
  87. "kombu.*",
  88. "mistune.*",
  89. "onelogin.saml2.auth.*",
  90. "onelogin.saml2.constants.*",
  91. "onelogin.saml2.idp_metadata_parser.*",
  92. "phabricator.*",
  93. "rb.*",
  94. "requests_oauthlib.*",
  95. "sqlparse.*",
  96. "statsd.*",
  97. "u2flib_server.model.*",
  98. "unidiff.*",
  99. ]
  100. ignore_missing_imports = true
  101. # end: missing 3rd party stubs
  102. # python3 -m tools.mypy_helpers.make_module_ignores
  103. # begin: sentry modules with typing issues
  104. # - remove the module from the list and fix the issues!
  105. # - python3 -m tools.mypy_helpers.find_easiest_modules
  106. [[tool.mypy.overrides]]
  107. module = [
  108. "sentry.api.base",
  109. "sentry.api.bases.organization_events",
  110. "sentry.api.bases.team",
  111. "sentry.api.endpoints.accept_organization_invite",
  112. "sentry.api.endpoints.auth_config",
  113. "sentry.api.endpoints.codeowners",
  114. "sentry.api.endpoints.codeowners.index",
  115. "sentry.api.endpoints.event_attachments",
  116. "sentry.api.endpoints.group_integration_details",
  117. "sentry.api.endpoints.group_integrations",
  118. "sentry.api.endpoints.index",
  119. "sentry.api.endpoints.internal.mail",
  120. "sentry.api.endpoints.organization_details",
  121. "sentry.api.endpoints.organization_events_facets_performance",
  122. "sentry.api.endpoints.organization_events_meta",
  123. "sentry.api.endpoints.organization_events_spans_performance",
  124. "sentry.api.endpoints.organization_index",
  125. "sentry.api.endpoints.organization_issues_count",
  126. "sentry.api.endpoints.organization_member.details",
  127. "sentry.api.endpoints.organization_member.index",
  128. "sentry.api.endpoints.organization_member.requests.invite.details",
  129. "sentry.api.endpoints.organization_onboarding_continuation_email",
  130. "sentry.api.endpoints.organization_projects",
  131. "sentry.api.endpoints.organization_releases",
  132. "sentry.api.endpoints.organization_request_project_creation",
  133. "sentry.api.endpoints.organization_search_details",
  134. "sentry.api.endpoints.organization_stats",
  135. "sentry.api.endpoints.project_index",
  136. "sentry.api.endpoints.project_ownership",
  137. "sentry.api.endpoints.project_release_files",
  138. "sentry.api.endpoints.project_repo_path_parsing",
  139. "sentry.api.endpoints.project_rules_configuration",
  140. "sentry.api.endpoints.project_transaction_names",
  141. "sentry.api.endpoints.team_details",
  142. "sentry.api.endpoints.user_subscriptions",
  143. "sentry.api.helpers.group_index.index",
  144. "sentry.api.invite_helper",
  145. "sentry.api.issue_search",
  146. "sentry.api.paginator",
  147. "sentry.api.permissions",
  148. "sentry.api.serializers.models.auth_provider",
  149. "sentry.api.serializers.models.event",
  150. "sentry.api.serializers.models.group",
  151. "sentry.api.serializers.models.group_stream",
  152. "sentry.api.serializers.models.organization",
  153. "sentry.api.serializers.models.plugin",
  154. "sentry.api.serializers.models.project",
  155. "sentry.api.serializers.models.role",
  156. "sentry.api.serializers.models.rule",
  157. "sentry.api.serializers.rest_framework.mentions",
  158. "sentry.auth.helper",
  159. "sentry.auth.provider",
  160. "sentry.auth.system",
  161. "sentry.db.mixin",
  162. "sentry.db.postgres.base",
  163. "sentry.discover.endpoints.discover_key_transactions",
  164. "sentry.eventstore.models",
  165. "sentry.grouping.strategies.legacy",
  166. "sentry.identity.bitbucket.provider",
  167. "sentry.identity.gitlab.provider",
  168. "sentry.identity.oauth2",
  169. "sentry.identity.pipeline",
  170. "sentry.identity.providers.dummy",
  171. "sentry.incidents.endpoints.bases",
  172. "sentry.incidents.endpoints.organization_alert_rule_details",
  173. "sentry.incidents.endpoints.organization_alert_rule_index",
  174. "sentry.incidents.endpoints.organization_incident_index",
  175. "sentry.incidents.subscription_processor",
  176. "sentry.incidents.tasks",
  177. "sentry.integrations.aws_lambda.integration",
  178. "sentry.integrations.bitbucket.client",
  179. "sentry.integrations.bitbucket.installed",
  180. "sentry.integrations.bitbucket.integration",
  181. "sentry.integrations.bitbucket.issues",
  182. "sentry.integrations.bitbucket.uninstalled",
  183. "sentry.integrations.bitbucket_server.client",
  184. "sentry.integrations.bitbucket_server.integration",
  185. "sentry.integrations.example.integration",
  186. "sentry.integrations.example.repository",
  187. "sentry.integrations.github.client",
  188. "sentry.integrations.github.integration",
  189. "sentry.integrations.github.issues",
  190. "sentry.integrations.github_enterprise.integration",
  191. "sentry.integrations.gitlab.client",
  192. "sentry.integrations.gitlab.integration",
  193. "sentry.integrations.gitlab.issues",
  194. "sentry.integrations.jira.client",
  195. "sentry.integrations.jira.integration",
  196. "sentry.integrations.jira.views.base",
  197. "sentry.integrations.jira.webhooks.base",
  198. "sentry.integrations.jira.webhooks.issue_updated",
  199. "sentry.integrations.jira_server.client",
  200. "sentry.integrations.jira_server.integration",
  201. "sentry.integrations.metric_alerts",
  202. "sentry.integrations.msteams.actions.form",
  203. "sentry.integrations.msteams.client",
  204. "sentry.integrations.msteams.integration",
  205. "sentry.integrations.msteams.notifications",
  206. "sentry.integrations.notifications",
  207. "sentry.integrations.pagerduty.actions.form",
  208. "sentry.integrations.pagerduty.client",
  209. "sentry.integrations.pagerduty.integration",
  210. "sentry.integrations.pipeline",
  211. "sentry.integrations.slack.actions.form",
  212. "sentry.integrations.slack.integration",
  213. "sentry.integrations.slack.message_builder.notifications.issues",
  214. "sentry.integrations.slack.notifications",
  215. "sentry.integrations.slack.unfurl.discover",
  216. "sentry.integrations.slack.utils.channel",
  217. "sentry.integrations.slack.utils.users",
  218. "sentry.integrations.slack.webhooks.command",
  219. "sentry.integrations.slack.webhooks.event",
  220. "sentry.integrations.utils.commit_context",
  221. "sentry.integrations.utils.sync",
  222. "sentry.integrations.vercel.client",
  223. "sentry.integrations.vercel.integration",
  224. "sentry.integrations.vercel.webhook",
  225. "sentry.integrations.vsts.client",
  226. "sentry.integrations.vsts.integration",
  227. "sentry.integrations.vsts.issues",
  228. "sentry.integrations.vsts.repository",
  229. "sentry.integrations.vsts_extension.integration",
  230. "sentry.issues.search",
  231. "sentry.middleware.auth",
  232. "sentry.middleware.ratelimit",
  233. "sentry.middleware.superuser",
  234. "sentry.monitors.consumers.monitor_consumer",
  235. "sentry.monitors.endpoints.base",
  236. "sentry.monitors.endpoints.organization_monitor_index",
  237. "sentry.net.http",
  238. "sentry.net.socket",
  239. "sentry.notifications.notifications.activity.base",
  240. "sentry.notifications.notifications.integration_nudge",
  241. "sentry.pipeline.base",
  242. "sentry.pipeline.views.base",
  243. "sentry.pipeline.views.nested",
  244. "sentry.plugins.bases.data_forwarding",
  245. "sentry.plugins.bases.issue",
  246. "sentry.plugins.bases.issue2",
  247. "sentry.plugins.bases.notify",
  248. "sentry.plugins.config",
  249. "sentry.plugins.endpoints",
  250. "sentry.receivers.releases",
  251. "sentry.release_health.metrics_sessions_v2",
  252. "sentry.replays.endpoints.project_replay_clicks_index",
  253. "sentry.rules.actions.integrations.base",
  254. "sentry.rules.actions.integrations.create_ticket.form",
  255. "sentry.rules.actions.integrations.create_ticket.utils",
  256. "sentry.rules.filters.assigned_to",
  257. "sentry.rules.history.preview",
  258. "sentry.scim.endpoints.members",
  259. "sentry.scim.endpoints.teams",
  260. "sentry.scim.endpoints.utils",
  261. "sentry.search.events.builder.errors",
  262. "sentry.search.events.builder.metrics",
  263. "sentry.search.events.datasets.filter_aliases",
  264. "sentry.search.events.datasets.metrics_layer",
  265. "sentry.search.events.fields",
  266. "sentry.search.events.filter",
  267. "sentry.search.snuba.executors",
  268. "sentry.search.utils",
  269. "sentry.sentry_apps.installations",
  270. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  271. "sentry.shared_integrations.client.proxy",
  272. "sentry.snuba.errors",
  273. "sentry.snuba.issue_platform",
  274. "sentry.snuba.metrics.datasource",
  275. "sentry.snuba.metrics.fields.base",
  276. "sentry.snuba.metrics.query_builder",
  277. "sentry.snuba.spans_metrics",
  278. "sentry.tagstore.snuba.backend",
  279. "sentry.tagstore.types",
  280. "sentry.tasks.auth",
  281. "sentry.tasks.base",
  282. "sentry.testutils.cases",
  283. "sentry.utils.auth",
  284. "sentry.utils.committers",
  285. "sentry.web.forms.accounts",
  286. "sentry.web.frontend.auth_login",
  287. "sentry.web.frontend.auth_organization_login",
  288. "sentry.web.frontend.base",
  289. "sentry.web.frontend.oauth_authorize",
  290. "sentry.web.frontend.react_page",
  291. "sentry.web.frontend.setup_wizard",
  292. "sentry.web.frontend.shared_group_details",
  293. "sentry_plugins.bitbucket.client",
  294. "sentry_plugins.bitbucket.mixins",
  295. "sentry_plugins.github.plugin",
  296. "sentry_plugins.jira.plugin",
  297. "tests.sentry.api.helpers.test_group_index",
  298. "tests.sentry.api.test_base",
  299. "tests.sentry.api.test_event_search",
  300. "tests.sentry.issues.test_utils",
  301. ]
  302. disable_error_code = [
  303. "arg-type",
  304. "assignment",
  305. "attr-defined",
  306. "call-arg",
  307. "call-overload",
  308. "dict-item",
  309. "index",
  310. "misc",
  311. "operator",
  312. "override",
  313. "return-value",
  314. "typeddict-item",
  315. "typeddict-unknown-key",
  316. "union-attr",
  317. "unreachable",
  318. "var-annotated",
  319. ]
  320. # end: sentry modules with typing issues
  321. # begin: stronger typing
  322. [[tool.mypy.overrides]]
  323. module = [
  324. "fixtures.safe_migrations_apps.*",
  325. "sentry.analytics.*",
  326. "sentry.api.endpoints.integrations.sentry_apps.installation.external_issue.*",
  327. "sentry.api.endpoints.project_backfill_similar_issues_embeddings_records",
  328. "sentry.api.endpoints.release_thresholds.health_checks.*",
  329. "sentry.api.endpoints.relocations.artifacts.*",
  330. "sentry.api.helpers.deprecation",
  331. "sentry.api.helpers.source_map_helper",
  332. "sentry.api.serializers.models.organization_member.*",
  333. "sentry.audit_log.services.*",
  334. "sentry.auth.services.*",
  335. "sentry.auth.view",
  336. "sentry.buffer.*",
  337. "sentry.build.*",
  338. "sentry.data_secrecy.models.*",
  339. "sentry.data_secrecy.service.*",
  340. "sentry.db.models.fields.citext",
  341. "sentry.db.models.fields.foreignkey",
  342. "sentry.db.models.fields.hybrid_cloud_foreign_key",
  343. "sentry.db.models.fields.types",
  344. "sentry.db.models.manager.*",
  345. "sentry.db.models.paranoia",
  346. "sentry.db.models.utils",
  347. "sentry.deletions.*",
  348. "sentry.digests.*",
  349. "sentry.digests.notifications",
  350. "sentry.dynamic_sampling.models.*",
  351. "sentry.dynamic_sampling.rules.biases.*",
  352. "sentry.dynamic_sampling.rules.combinators.*",
  353. "sentry.dynamic_sampling.rules.helpers.*",
  354. "sentry.dynamic_sampling.tasks.helpers.*",
  355. "sentry.eventstore.reprocessing.*",
  356. "sentry.eventstore.reprocessing.redis",
  357. "sentry.eventstream.*",
  358. "sentry.eventtypes.error",
  359. "sentry.feedback.migrations.*",
  360. "sentry.flags.migrations.*",
  361. "sentry.grouping.api",
  362. "sentry.grouping.component",
  363. "sentry.grouping.fingerprinting",
  364. "sentry.grouping.fingerprinting.*",
  365. "sentry.grouping.grouping_info",
  366. "sentry.grouping.ingest.*",
  367. "sentry.grouping.parameterization",
  368. "sentry.grouping.utils",
  369. "sentry.grouping.variants",
  370. "sentry.hybridcloud.*",
  371. "sentry.identity.discord.*",
  372. "sentry.identity.github_enterprise.*",
  373. "sentry.identity.services.*",
  374. "sentry.identity.vsts_extension.*",
  375. "sentry.incidents.utils.*",
  376. "sentry.ingest.slicing",
  377. "sentry.integrations.discord.actions.*",
  378. "sentry.integrations.discord.message_builder.base.component.*",
  379. "sentry.integrations.discord.message_builder.base.embed.*",
  380. "sentry.integrations.discord.utils.*",
  381. "sentry.integrations.discord.views.*",
  382. "sentry.integrations.discord.webhooks.*",
  383. "sentry.integrations.github.actions.*",
  384. "sentry.integrations.github_enterprise.actions.*",
  385. "sentry.integrations.jira.actions.*",
  386. "sentry.integrations.jira.endpoints.*",
  387. "sentry.integrations.jira.models.*",
  388. "sentry.integrations.jira_server.actions.*",
  389. "sentry.integrations.jira_server.utils.*",
  390. "sentry.integrations.models.integration_feature",
  391. "sentry.integrations.project_management.*",
  392. "sentry.integrations.repository.*",
  393. "sentry.integrations.services.*",
  394. "sentry.integrations.slack.threads.*",
  395. "sentry.integrations.slack.views.*",
  396. "sentry.integrations.vsts.actions.*",
  397. "sentry.integrations.vsts.tasks.*",
  398. "sentry.integrations.web.debug.*",
  399. "sentry.issues",
  400. "sentry.issues.analytics",
  401. "sentry.issues.apps",
  402. "sentry.issues.constants",
  403. "sentry.issues.endpoints",
  404. "sentry.issues.endpoints.actionable_items",
  405. "sentry.issues.endpoints.group_activities",
  406. "sentry.issues.endpoints.group_event_details",
  407. "sentry.issues.endpoints.group_events",
  408. "sentry.issues.endpoints.group_notes",
  409. "sentry.issues.endpoints.group_notes_details",
  410. "sentry.issues.endpoints.group_similar_issues_embeddings",
  411. "sentry.issues.endpoints.group_tombstone",
  412. "sentry.issues.endpoints.group_tombstone_details",
  413. "sentry.issues.endpoints.organization_eventid",
  414. "sentry.issues.endpoints.organization_group_index",
  415. "sentry.issues.endpoints.organization_group_index_stats",
  416. "sentry.issues.endpoints.organization_group_search_views",
  417. "sentry.issues.endpoints.organization_release_previous_commits",
  418. "sentry.issues.endpoints.organization_searches",
  419. "sentry.issues.endpoints.organization_shortid",
  420. "sentry.issues.endpoints.project_event_details",
  421. "sentry.issues.endpoints.project_events",
  422. "sentry.issues.endpoints.project_group_index",
  423. "sentry.issues.endpoints.project_group_stats",
  424. "sentry.issues.endpoints.project_stacktrace_link",
  425. "sentry.issues.endpoints.related_issues",
  426. "sentry.issues.endpoints.shared_group_details",
  427. "sentry.issues.endpoints.team_groups_old",
  428. "sentry.issues.escalating",
  429. "sentry.issues.escalating_group_forecast",
  430. "sentry.issues.escalating_issues_alg",
  431. "sentry.issues.forecasts",
  432. "sentry.issues.ignored",
  433. "sentry.issues.ingest",
  434. "sentry.issues.issue_occurrence",
  435. "sentry.issues.json_schemas",
  436. "sentry.issues.merge",
  437. "sentry.issues.occurrence_consumer",
  438. "sentry.issues.ongoing",
  439. "sentry.issues.priority",
  440. "sentry.issues.producer",
  441. "sentry.issues.query",
  442. "sentry.issues.receivers",
  443. "sentry.issues.related.*",
  444. "sentry.issues.run",
  445. "sentry.issues.services.*",
  446. "sentry.issues.status_change",
  447. "sentry.issues.status_change_consumer",
  448. "sentry.issues.status_change_message",
  449. "sentry.issues.update_inbox",
  450. "sentry.lang.java.processing",
  451. "sentry.llm.*",
  452. "sentry.migrations.*",
  453. "sentry.models.activity",
  454. "sentry.models.event",
  455. "sentry.models.eventattachment",
  456. "sentry.models.groupassignee",
  457. "sentry.models.grouphistory",
  458. "sentry.models.groupsubscription",
  459. "sentry.models.options.*",
  460. "sentry.monkey.*",
  461. "sentry.nodestore.*",
  462. "sentry.nodestore.base",
  463. "sentry.nodestore.bigtable.backend",
  464. "sentry.nodestore.django.backend",
  465. "sentry.nodestore.django.models",
  466. "sentry.nodestore.filesystem.backend",
  467. "sentry.nodestore.models",
  468. "sentry.notifications.services.*",
  469. "sentry.organizations.*",
  470. "sentry.ownership.*",
  471. "sentry.plugins.base.response",
  472. "sentry.plugins.base.view",
  473. "sentry.plugins.validators.*",
  474. "sentry.post_process_forwarder.*",
  475. "sentry.profiles.*",
  476. "sentry.projects.*",
  477. "sentry.queue.*",
  478. "sentry.ratelimits.leaky_bucket",
  479. "sentry.relay.config.metric_extraction",
  480. "sentry.relay.types.*",
  481. "sentry.release_health.release_monitor.*",
  482. "sentry.relocation.services.relocation_export.*",
  483. "sentry.remote_subscriptions.migrations.*",
  484. "sentry.replays.consumers.*",
  485. "sentry.replays.lib.new_query.*",
  486. "sentry.replays.migrations.*",
  487. "sentry.reprocessing2",
  488. "sentry.roles.*",
  489. "sentry.rules.actions.sentry_apps.*",
  490. "sentry.rules.conditions.*",
  491. "sentry.rules.history.endpoints.*",
  492. "sentry.runner.*",
  493. "sentry.search.snuba.backend",
  494. "sentry.security.*",
  495. "sentry.seer.similarity.*",
  496. "sentry.sentry_apps.external_issues.*",
  497. "sentry.sentry_apps.services.*",
  498. "sentry.sentry_apps.utils.*",
  499. "sentry.sentry_apps.web.*",
  500. "sentry.sentry_metrics.consumers.indexer.*",
  501. "sentry.sentry_metrics.indexer.limiters.*",
  502. "sentry.shared_integrations.exceptions.*",
  503. "sentry.slug.*",
  504. "sentry.snuba.metrics.extraction",
  505. "sentry.snuba.metrics.naming_layer.*",
  506. "sentry.snuba.query_subscriptions.*",
  507. "sentry.spans.grouping.*",
  508. "sentry.stacktraces.platform",
  509. "sentry.tasks.beacon",
  510. "sentry.tasks.commit_context",
  511. "sentry.tasks.embeddings_grouping.backfill_seer_grouping_records_for_project",
  512. "sentry.tasks.on_demand_metrics",
  513. "sentry.tasks.reprocessing2",
  514. "sentry.tasks.store",
  515. "sentry.taskworker.*",
  516. "sentry.tempest.endpoints.*",
  517. "sentry.tempest.migrations.*",
  518. "sentry.testutils.helpers.task_runner",
  519. "sentry.testutils.skips",
  520. "sentry.toolbar.utils.*",
  521. "sentry.trash.*",
  522. "sentry.types.*",
  523. "sentry.uptime.migrations.*",
  524. "sentry.usage_accountant.*",
  525. "sentry.users.*",
  526. "sentry.utils.arroyo",
  527. "sentry.utils.assets",
  528. "sentry.utils.audit",
  529. "sentry.utils.celery",
  530. "sentry.utils.codeowners",
  531. "sentry.utils.colors",
  532. "sentry.utils.email.*",
  533. "sentry.utils.env",
  534. "sentry.utils.event",
  535. "sentry.utils.files",
  536. "sentry.utils.function_cache",
  537. "sentry.utils.geo",
  538. "sentry.utils.imports",
  539. "sentry.utils.iterators",
  540. "sentry.utils.javascript",
  541. "sentry.utils.kvstore.*",
  542. "sentry.utils.lazy_service_wrapper",
  543. "sentry.utils.locking.*",
  544. "sentry.utils.migrations",
  545. "sentry.utils.numbers",
  546. "sentry.utils.otp",
  547. "sentry.utils.performance_issues.detectors.*",
  548. "sentry.utils.performance_issues.performance_detection",
  549. "sentry.utils.pubsub",
  550. "sentry.utils.redis",
  551. "sentry.utils.redis_metrics",
  552. "sentry.utils.sdk_crashes.*",
  553. "sentry.utils.sentry_apps.*",
  554. "sentry.utils.services",
  555. "sentry.utils.sms",
  556. "sentry.utils.snowflake",
  557. "sentry.utils.urls",
  558. "sentry.utils.uwsgi",
  559. "sentry.utils.zip",
  560. "sentry.web.frontend.auth_provider_login",
  561. "sentry.web.frontend.cli",
  562. "sentry.web.frontend.csv",
  563. "sentry.web.frontend.mixins.*",
  564. "sentry.workflow_engine.handlers.action.*",
  565. "sentry.workflow_engine.handlers.condition.*",
  566. "sentry.workflow_engine.migrations.*",
  567. "sentry_plugins.base",
  568. "social_auth.migrations.*",
  569. "sudo.*",
  570. "tests.sentry.audit_log.services.*",
  571. "tests.sentry.deletions.test_group",
  572. "tests.sentry.event_manager.test_event_manager",
  573. "tests.sentry.grouping.ingest.test_seer",
  574. "tests.sentry.grouping.test_fingerprinting",
  575. "tests.sentry.hybridcloud.*",
  576. "tests.sentry.incidents.serializers.*",
  577. "tests.sentry.integrations.msteams.webhook.*",
  578. "tests.sentry.integrations.repository.base.*",
  579. "tests.sentry.integrations.repository.issue_alert.*",
  580. "tests.sentry.integrations.slack.threads.*",
  581. "tests.sentry.issues",
  582. "tests.sentry.issues.endpoints",
  583. "tests.sentry.issues.endpoints.test_actionable_items",
  584. "tests.sentry.issues.endpoints.test_group_activities",
  585. "tests.sentry.issues.endpoints.test_group_details",
  586. "tests.sentry.issues.endpoints.test_group_event_details",
  587. "tests.sentry.issues.endpoints.test_group_events",
  588. "tests.sentry.issues.endpoints.test_group_hashes",
  589. "tests.sentry.issues.endpoints.test_group_notes",
  590. "tests.sentry.issues.endpoints.test_group_notes_details",
  591. "tests.sentry.issues.endpoints.test_group_similar_issues_embeddings",
  592. "tests.sentry.issues.endpoints.test_group_tombstone",
  593. "tests.sentry.issues.endpoints.test_group_tombstone_details",
  594. "tests.sentry.issues.endpoints.test_organization_group_search_views",
  595. "tests.sentry.issues.endpoints.test_organization_searches",
  596. "tests.sentry.issues.endpoints.test_organization_shortid",
  597. "tests.sentry.issues.endpoints.test_project_group_stats",
  598. "tests.sentry.issues.endpoints.test_project_stacktrace_link",
  599. "tests.sentry.issues.endpoints.test_related_issues",
  600. "tests.sentry.issues.endpoints.test_shared_group_details",
  601. "tests.sentry.issues.endpoints.test_source_map_debug",
  602. "tests.sentry.issues.endpoints.test_team_groups_old",
  603. "tests.sentry.issues.test_attributes",
  604. "tests.sentry.issues.test_escalating",
  605. "tests.sentry.issues.test_escalating_issues_alg",
  606. "tests.sentry.issues.test_group_attributes_dataset",
  607. "tests.sentry.issues.test_grouptype",
  608. "tests.sentry.issues.test_ignored",
  609. "tests.sentry.issues.test_ingest",
  610. "tests.sentry.issues.test_issue_occurrence",
  611. "tests.sentry.issues.test_issue_velocity",
  612. "tests.sentry.issues.test_json_schemas",
  613. "tests.sentry.issues.test_merge",
  614. "tests.sentry.issues.test_occurrence_consumer",
  615. "tests.sentry.issues.test_ongoing",
  616. "tests.sentry.issues.test_priority",
  617. "tests.sentry.issues.test_producer",
  618. "tests.sentry.issues.test_run",
  619. "tests.sentry.issues.test_search_issues_dataset",
  620. "tests.sentry.issues.test_status_change",
  621. "tests.sentry.issues.test_status_change_consumer",
  622. "tests.sentry.issues.test_update_inbox",
  623. "tests.sentry.organizations.*",
  624. "tests.sentry.ownership.*",
  625. "tests.sentry.post_process_forwarder.*",
  626. "tests.sentry.profiling.*",
  627. "tests.sentry.queue.*",
  628. "tests.sentry.ratelimits.test_leaky_bucket",
  629. "tests.sentry.relay.config.test_metric_extraction",
  630. "tests.sentry.replays.unit.lib.*",
  631. "tests.sentry.rules.actions.base.*",
  632. "tests.sentry.security.*",
  633. "tests.sentry.snuba.metrics.test_metrics_query_layer.*",
  634. "tests.sentry.tasks.integrations.*",
  635. "tests.sentry.tasks.test_on_demand_metrics",
  636. "tests.sentry.types.*",
  637. "tests.sentry.types.test_actor",
  638. "tests.sentry.types.test_region",
  639. "tests.sentry.usage_accountant.*",
  640. "tests.sentry.users.services.*",
  641. "tests.sentry.utils.mockdata.*",
  642. "tests.sentry.web.frontend.test_cli",
  643. "tools.*",
  644. ]
  645. disallow_any_generics = true
  646. disallow_untyped_defs = true
  647. # end: stronger typing