pyproject.toml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. [tool.black]
  2. # File filtering is taken care of in pre-commit.
  3. line-length = 100
  4. target-version = ['py311']
  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.organization_request_change",
  111. "sentry.api.bases.organizationmember",
  112. "sentry.api.bases.project",
  113. "sentry.api.bases.project_request_change",
  114. "sentry.api.bases.sentryapps",
  115. "sentry.api.bases.team",
  116. "sentry.api.endpoints.accept_organization_invite",
  117. "sentry.api.endpoints.auth_config",
  118. "sentry.api.endpoints.auth_login",
  119. "sentry.api.endpoints.chunk",
  120. "sentry.api.endpoints.codeowners",
  121. "sentry.api.endpoints.codeowners.index",
  122. "sentry.api.endpoints.event_attachments",
  123. "sentry.api.endpoints.group_integration_details",
  124. "sentry.api.endpoints.group_integrations",
  125. "sentry.api.endpoints.index",
  126. "sentry.api.endpoints.integrations.sentry_apps.details",
  127. "sentry.api.endpoints.integrations.sentry_apps.index",
  128. "sentry.api.endpoints.integrations.sentry_apps.installation.index",
  129. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.index",
  130. "sentry.api.endpoints.integrations.sentry_apps.publish_request",
  131. "sentry.api.endpoints.integrations.sentry_apps.requests",
  132. "sentry.api.endpoints.integrations.sentry_apps.stats.details",
  133. "sentry.api.endpoints.internal.mail",
  134. "sentry.api.endpoints.organization_details",
  135. "sentry.api.endpoints.organization_events",
  136. "sentry.api.endpoints.organization_events_facets",
  137. "sentry.api.endpoints.organization_events_facets_performance",
  138. "sentry.api.endpoints.organization_events_meta",
  139. "sentry.api.endpoints.organization_events_spans_performance",
  140. "sentry.api.endpoints.organization_events_trends",
  141. "sentry.api.endpoints.organization_index",
  142. "sentry.api.endpoints.organization_issues_count",
  143. "sentry.api.endpoints.organization_member.details",
  144. "sentry.api.endpoints.organization_member.index",
  145. "sentry.api.endpoints.organization_member.requests.invite.details",
  146. "sentry.api.endpoints.organization_member_unreleased_commits",
  147. "sentry.api.endpoints.organization_metrics_meta",
  148. "sentry.api.endpoints.organization_onboarding_continuation_email",
  149. "sentry.api.endpoints.organization_projects",
  150. "sentry.api.endpoints.organization_projects_experiment",
  151. "sentry.api.endpoints.organization_releases",
  152. "sentry.api.endpoints.organization_request_project_creation",
  153. "sentry.api.endpoints.organization_search_details",
  154. "sentry.api.endpoints.organization_sessions",
  155. "sentry.api.endpoints.organization_stats",
  156. "sentry.api.endpoints.organization_teams",
  157. "sentry.api.endpoints.project_index",
  158. "sentry.api.endpoints.project_ownership",
  159. "sentry.api.endpoints.project_release_files",
  160. "sentry.api.endpoints.project_repo_path_parsing",
  161. "sentry.api.endpoints.project_rule_preview",
  162. "sentry.api.endpoints.project_rules_configuration",
  163. "sentry.api.endpoints.project_servicehook_stats",
  164. "sentry.api.endpoints.project_transaction_names",
  165. "sentry.api.endpoints.rule_snooze",
  166. "sentry.api.endpoints.team_details",
  167. "sentry.api.endpoints.team_release_count",
  168. "sentry.api.endpoints.team_time_to_resolution",
  169. "sentry.api.endpoints.user_subscriptions",
  170. "sentry.api.event_search",
  171. "sentry.api.helpers.group_index.index",
  172. "sentry.api.helpers.group_index.update",
  173. "sentry.api.invite_helper",
  174. "sentry.api.issue_search",
  175. "sentry.api.paginator",
  176. "sentry.api.permissions",
  177. "sentry.api.serializers.models.auth_provider",
  178. "sentry.api.serializers.models.dashboard",
  179. "sentry.api.serializers.models.environment",
  180. "sentry.api.serializers.models.event",
  181. "sentry.api.serializers.models.group",
  182. "sentry.api.serializers.models.group_stream",
  183. "sentry.api.serializers.models.notification_action",
  184. "sentry.api.serializers.models.organization",
  185. "sentry.api.serializers.models.plugin",
  186. "sentry.api.serializers.models.project",
  187. "sentry.api.serializers.models.role",
  188. "sentry.api.serializers.models.rule",
  189. "sentry.api.serializers.models.sentry_app",
  190. "sentry.api.serializers.models.team",
  191. "sentry.api.serializers.rest_framework.mentions",
  192. "sentry.api.serializers.rest_framework.notification_action",
  193. "sentry.api.serializers.rest_framework.rule",
  194. "sentry.api.serializers.rest_framework.sentry_app_request",
  195. "sentry.api.serializers.snuba",
  196. "sentry.api.validators.email",
  197. "sentry.auth.helper",
  198. "sentry.auth.provider",
  199. "sentry.auth.system",
  200. "sentry.db.mixin",
  201. "sentry.db.postgres.base",
  202. "sentry.db.router",
  203. "sentry.discover.endpoints.discover_key_transactions",
  204. "sentry.eventstore.models",
  205. "sentry.features.handler",
  206. "sentry.features.manager",
  207. "sentry.grouping.strategies.legacy",
  208. "sentry.identity.bitbucket.provider",
  209. "sentry.identity.github_enterprise.provider",
  210. "sentry.identity.gitlab.provider",
  211. "sentry.identity.oauth2",
  212. "sentry.identity.pipeline",
  213. "sentry.identity.providers.dummy",
  214. "sentry.identity.slack.provider",
  215. "sentry.incidents.endpoints.bases",
  216. "sentry.incidents.endpoints.organization_alert_rule_details",
  217. "sentry.incidents.endpoints.organization_alert_rule_index",
  218. "sentry.incidents.endpoints.organization_incident_comment_details",
  219. "sentry.incidents.endpoints.organization_incident_index",
  220. "sentry.incidents.subscription_processor",
  221. "sentry.incidents.tasks",
  222. "sentry.integrations.api.bases.integration",
  223. "sentry.integrations.aws_lambda.integration",
  224. "sentry.integrations.bitbucket.client",
  225. "sentry.integrations.bitbucket.installed",
  226. "sentry.integrations.bitbucket.integration",
  227. "sentry.integrations.bitbucket.issues",
  228. "sentry.integrations.bitbucket.uninstalled",
  229. "sentry.integrations.bitbucket_server.client",
  230. "sentry.integrations.bitbucket_server.integration",
  231. "sentry.integrations.example.integration",
  232. "sentry.integrations.example.repository",
  233. "sentry.integrations.github.client",
  234. "sentry.integrations.github.integration",
  235. "sentry.integrations.github.issues",
  236. "sentry.integrations.github_enterprise.integration",
  237. "sentry.integrations.gitlab.client",
  238. "sentry.integrations.gitlab.integration",
  239. "sentry.integrations.gitlab.issues",
  240. "sentry.integrations.jira.actions.form",
  241. "sentry.integrations.jira.client",
  242. "sentry.integrations.jira.integration",
  243. "sentry.integrations.jira.views.base",
  244. "sentry.integrations.jira.webhooks.base",
  245. "sentry.integrations.jira.webhooks.issue_updated",
  246. "sentry.integrations.jira_server.client",
  247. "sentry.integrations.jira_server.integration",
  248. "sentry.integrations.metric_alerts",
  249. "sentry.integrations.mixins.notifications",
  250. "sentry.integrations.msteams.actions.form",
  251. "sentry.integrations.msteams.client",
  252. "sentry.integrations.msteams.integration",
  253. "sentry.integrations.msteams.notifications",
  254. "sentry.integrations.msteams.webhook",
  255. "sentry.integrations.notifications",
  256. "sentry.integrations.pagerduty.actions.form",
  257. "sentry.integrations.pagerduty.client",
  258. "sentry.integrations.pagerduty.integration",
  259. "sentry.integrations.pipeline",
  260. "sentry.integrations.slack.actions.form",
  261. "sentry.integrations.slack.integration",
  262. "sentry.integrations.slack.message_builder.notifications.digest",
  263. "sentry.integrations.slack.message_builder.notifications.issues",
  264. "sentry.integrations.slack.notifications",
  265. "sentry.integrations.slack.unfurl.discover",
  266. "sentry.integrations.slack.utils.channel",
  267. "sentry.integrations.slack.utils.users",
  268. "sentry.integrations.slack.webhooks.action",
  269. "sentry.integrations.slack.webhooks.command",
  270. "sentry.integrations.slack.webhooks.event",
  271. "sentry.integrations.utils.commit_context",
  272. "sentry.integrations.utils.sync",
  273. "sentry.integrations.vercel.client",
  274. "sentry.integrations.vercel.integration",
  275. "sentry.integrations.vercel.webhook",
  276. "sentry.integrations.vsts.client",
  277. "sentry.integrations.vsts.integration",
  278. "sentry.integrations.vsts.issues",
  279. "sentry.integrations.vsts.repository",
  280. "sentry.integrations.vsts_extension.integration",
  281. "sentry.issues.search",
  282. "sentry.middleware.access_log",
  283. "sentry.middleware.auth",
  284. "sentry.middleware.ratelimit",
  285. "sentry.middleware.superuser",
  286. "sentry.models.integrations.sentry_app_installation",
  287. "sentry.models.organizationaccessrequest",
  288. "sentry.monitors.consumers.monitor_consumer",
  289. "sentry.monitors.endpoints.base",
  290. "sentry.monitors.endpoints.monitor_ingest_checkin_attachment",
  291. "sentry.monitors.endpoints.organization_monitor_index",
  292. "sentry.net.http",
  293. "sentry.net.socket",
  294. "sentry.notifications.notifications.activity.base",
  295. "sentry.notifications.notifications.activity.release",
  296. "sentry.notifications.notifications.integration_nudge",
  297. "sentry.ownership.grammar",
  298. "sentry.pipeline.base",
  299. "sentry.pipeline.views.base",
  300. "sentry.pipeline.views.nested",
  301. "sentry.plugins.bases.data_forwarding",
  302. "sentry.plugins.bases.issue",
  303. "sentry.plugins.bases.issue2",
  304. "sentry.plugins.bases.notify",
  305. "sentry.plugins.config",
  306. "sentry.plugins.endpoints",
  307. "sentry.receivers.releases",
  308. "sentry.release_health.metrics_sessions_v2",
  309. "sentry.replays.endpoints.project_replay_clicks_index",
  310. "sentry.replays.lib.query",
  311. "sentry.rules.actions.integrations.base",
  312. "sentry.rules.actions.integrations.create_ticket.form",
  313. "sentry.rules.actions.integrations.create_ticket.utils",
  314. "sentry.rules.filters.assigned_to",
  315. "sentry.rules.history.preview",
  316. "sentry.scim.endpoints.members",
  317. "sentry.scim.endpoints.teams",
  318. "sentry.scim.endpoints.utils",
  319. "sentry.search.events.builder.errors",
  320. "sentry.search.events.builder.metrics",
  321. "sentry.search.events.datasets.discover",
  322. "sentry.search.events.datasets.filter_aliases",
  323. "sentry.search.events.datasets.function_aliases",
  324. "sentry.search.events.datasets.metrics",
  325. "sentry.search.events.datasets.metrics_layer",
  326. "sentry.search.events.fields",
  327. "sentry.search.events.filter",
  328. "sentry.search.snuba.executors",
  329. "sentry.search.utils",
  330. "sentry.sentry_apps.installations",
  331. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  332. "sentry.shared_integrations.client.proxy",
  333. "sentry.similarity.features",
  334. "sentry.snuba.errors",
  335. "sentry.snuba.issue_platform",
  336. "sentry.snuba.metrics.datasource",
  337. "sentry.snuba.metrics.fields.base",
  338. "sentry.snuba.metrics.query_builder",
  339. "sentry.snuba.sessions_v2",
  340. "sentry.snuba.spans_indexed",
  341. "sentry.snuba.spans_metrics",
  342. "sentry.tagstore.snuba.backend",
  343. "sentry.tagstore.types",
  344. "sentry.tasks.auth",
  345. "sentry.tasks.base",
  346. "sentry.tasks.process_buffer",
  347. "sentry.tasks.sentry_apps",
  348. "sentry.templatetags.sentry_assets",
  349. "sentry.templatetags.sentry_helpers",
  350. "sentry.templatetags.sentry_plugins",
  351. "sentry.testutils.cases",
  352. "sentry.testutils.fixtures",
  353. "sentry.testutils.helpers.features",
  354. "sentry.testutils.helpers.notifications",
  355. "sentry.testutils.helpers.slack",
  356. "sentry.utils.auth",
  357. "sentry.utils.committers",
  358. "sentry.utils.services",
  359. "sentry.web.forms.accounts",
  360. "sentry.web.frontend.auth_close",
  361. "sentry.web.frontend.auth_login",
  362. "sentry.web.frontend.auth_logout",
  363. "sentry.web.frontend.auth_organization_login",
  364. "sentry.web.frontend.base",
  365. "sentry.web.frontend.debug.debug_codeowners_auto_sync_failure_email",
  366. "sentry.web.frontend.debug.debug_incident_activity_email",
  367. "sentry.web.frontend.debug.debug_incident_trigger_email",
  368. "sentry.web.frontend.debug.debug_mfa_added_email",
  369. "sentry.web.frontend.debug.debug_mfa_removed_email",
  370. "sentry.web.frontend.debug.debug_organization_integration_request",
  371. "sentry.web.frontend.debug.debug_organization_invite_request",
  372. "sentry.web.frontend.debug.debug_organization_join_request",
  373. "sentry.web.frontend.disabled_member_view",
  374. "sentry.web.frontend.group_plugin_action",
  375. "sentry.web.frontend.idp_email_verification",
  376. "sentry.web.frontend.newest_issue",
  377. "sentry.web.frontend.oauth_authorize",
  378. "sentry.web.frontend.oauth_token",
  379. "sentry.web.frontend.pipeline_advancer",
  380. "sentry.web.frontend.project_event",
  381. "sentry.web.frontend.react_page",
  382. "sentry.web.frontend.reactivate_account",
  383. "sentry.web.frontend.setup_wizard",
  384. "sentry.web.frontend.shared_group_details",
  385. "sentry.web.frontend.twofactor",
  386. "sentry_plugins.bitbucket.client",
  387. "sentry_plugins.bitbucket.mixins",
  388. "sentry_plugins.github.plugin",
  389. "sentry_plugins.jira.plugin",
  390. "tests.sentry.api.bases.test_organization",
  391. "tests.sentry.api.bases.test_project",
  392. "tests.sentry.api.bases.test_sentryapps",
  393. "tests.sentry.api.bases.test_team",
  394. "tests.sentry.api.endpoints.notifications.test_notification_actions_details",
  395. "tests.sentry.api.endpoints.notifications.test_notification_actions_index",
  396. "tests.sentry.api.endpoints.test_event_attachment_details",
  397. "tests.sentry.api.helpers.test_group_index",
  398. "tests.sentry.api.test_authentication",
  399. "tests.sentry.api.test_base",
  400. "tests.sentry.api.test_event_search",
  401. "tests.sentry.eventstore.test_base",
  402. "tests.sentry.issues.test_utils",
  403. ]
  404. disable_error_code = [
  405. "arg-type",
  406. "assignment",
  407. "attr-defined",
  408. "call-arg",
  409. "call-overload",
  410. "dict-item",
  411. "index",
  412. "misc",
  413. "operator",
  414. "override",
  415. "return-value",
  416. "typeddict-item",
  417. "typeddict-unknown-key",
  418. "union-attr",
  419. "unreachable",
  420. "var-annotated",
  421. ]
  422. # end: sentry modules with typing issues
  423. # begin: stronger typing
  424. [[tool.mypy.overrides]]
  425. module = [
  426. "sentry.api.endpoints.issues.*",
  427. "sentry.api.helpers.deprecation",
  428. "sentry.api.helpers.source_map_helper",
  429. "sentry.auth.services.*",
  430. "sentry.auth.view",
  431. "sentry.buffer.*",
  432. "sentry.build.*",
  433. "sentry.db.models.fields.citext",
  434. "sentry.db.models.fields.foreignkey",
  435. "sentry.db.models.fields.hybrid_cloud_foreign_key",
  436. "sentry.db.models.fields.types",
  437. "sentry.db.models.manager.*",
  438. "sentry.db.models.paranoia",
  439. "sentry.db.models.utils",
  440. "sentry.deletions",
  441. "sentry.deletions.tasks.groups",
  442. "sentry.digests.notifications",
  443. "sentry.eventstore.reprocessing.redis",
  444. "sentry.eventtypes.error",
  445. "sentry.grouping.component",
  446. "sentry.grouping.fingerprinting",
  447. "sentry.grouping.ingest.metrics",
  448. "sentry.grouping.ingest.utils",
  449. "sentry.grouping.parameterization",
  450. "sentry.hybridcloud.*",
  451. "sentry.ingest.slicing",
  452. "sentry.integrations.models.integration_feature",
  453. "sentry.issues",
  454. "sentry.issues.analytics",
  455. "sentry.issues.apps",
  456. "sentry.issues.constants",
  457. "sentry.issues.endpoints",
  458. "sentry.issues.endpoints.group_events",
  459. "sentry.issues.endpoints.organization_group_search_views",
  460. "sentry.issues.endpoints.organization_release_previous_commits",
  461. "sentry.issues.endpoints.organization_searches",
  462. "sentry.issues.endpoints.project_stacktrace_link",
  463. "sentry.issues.escalating_group_forecast",
  464. "sentry.issues.escalating_issues_alg",
  465. "sentry.issues.forecasts",
  466. "sentry.issues.ignored",
  467. "sentry.issues.ingest",
  468. "sentry.issues.issue_occurrence",
  469. "sentry.issues.json_schemas",
  470. "sentry.issues.merge",
  471. "sentry.issues.occurrence_consumer",
  472. "sentry.issues.ongoing",
  473. "sentry.issues.priority",
  474. "sentry.issues.producer",
  475. "sentry.issues.query",
  476. "sentry.issues.receivers",
  477. "sentry.issues.related.*",
  478. "sentry.issues.run",
  479. "sentry.issues.status_change",
  480. "sentry.issues.status_change_consumer",
  481. "sentry.issues.status_change_message",
  482. "sentry.issues.update_inbox",
  483. "sentry.lang.java.processing",
  484. "sentry.llm.*",
  485. "sentry.mediators.sentry_app_installations.installation_notifier",
  486. "sentry.migrations.*",
  487. "sentry.models.event",
  488. "sentry.models.eventattachment",
  489. "sentry.models.groupsubscription",
  490. "sentry.monkey",
  491. "sentry.nodestore.base",
  492. "sentry.nodestore.bigtable.backend",
  493. "sentry.nodestore.django.backend",
  494. "sentry.nodestore.django.models",
  495. "sentry.nodestore.filesystem.backend",
  496. "sentry.nodestore.models",
  497. "sentry.organizations.*",
  498. "sentry.plugins.base.response",
  499. "sentry.plugins.base.view",
  500. "sentry.profiles.*",
  501. "sentry.projects.services.*",
  502. "sentry.ratelimits.leaky_bucket",
  503. "sentry.relay.config.metric_extraction",
  504. "sentry.reprocessing2",
  505. "sentry.runner.*",
  506. "sentry.search.snuba.backend",
  507. "sentry.sentry_metrics.consumers.indexer.slicing_router",
  508. "sentry.snuba.metrics.extraction",
  509. "sentry.stacktraces.platform",
  510. "sentry.tasks.beacon",
  511. "sentry.tasks.commit_context",
  512. "sentry.tasks.on_demand_metrics",
  513. "sentry.tasks.reprocessing2",
  514. "sentry.tasks.store",
  515. "sentry.testutils.helpers.task_runner",
  516. "sentry.types.actor",
  517. "sentry.types.region",
  518. "sentry.users.*",
  519. "sentry.utils.arroyo",
  520. "sentry.utils.assets",
  521. "sentry.utils.audit",
  522. "sentry.utils.celery",
  523. "sentry.utils.codeowners",
  524. "sentry.utils.colors",
  525. "sentry.utils.email.*",
  526. "sentry.utils.env",
  527. "sentry.utils.event",
  528. "sentry.utils.files",
  529. "sentry.utils.geo",
  530. "sentry.utils.imports",
  531. "sentry.utils.iterators",
  532. "sentry.utils.javascript",
  533. "sentry.utils.lazy_service_wrapper",
  534. "sentry.utils.locking.*",
  535. "sentry.utils.migrations",
  536. "sentry.utils.numbers",
  537. "sentry.utils.otp",
  538. "sentry.utils.performance_issues.detectors.*",
  539. "sentry.utils.performance_issues.performance_detection",
  540. "sentry.utils.pubsub",
  541. "sentry.utils.redis",
  542. "sentry.utils.redis_metrics",
  543. "sentry.utils.sentry_apps.*",
  544. "sentry.utils.sms",
  545. "sentry.utils.snowflake",
  546. "sentry.utils.urls",
  547. "sentry.utils.uwsgi",
  548. "sentry.utils.zip",
  549. "sentry.web.frontend.auth_provider_login",
  550. "sentry.web.frontend.csv",
  551. "sentry_plugins.base",
  552. "tests.sentry.api.endpoints.issues.*",
  553. "tests.sentry.event_manager.test_event_manager",
  554. "tests.sentry.grouping.test_fingerprinting",
  555. "tests.sentry.hybridcloud.*",
  556. "tests.sentry.issues",
  557. "tests.sentry.issues.endpoints",
  558. "tests.sentry.issues.endpoints.test_actionable_items",
  559. "tests.sentry.issues.endpoints.test_organization_group_search_views",
  560. "tests.sentry.issues.endpoints.test_organization_searches",
  561. "tests.sentry.issues.endpoints.test_project_stacktrace_link",
  562. "tests.sentry.issues.endpoints.test_source_map_debug",
  563. "tests.sentry.issues.test_attributes",
  564. "tests.sentry.issues.test_escalating",
  565. "tests.sentry.issues.test_escalating_issues_alg",
  566. "tests.sentry.issues.test_group_attributes_dataset",
  567. "tests.sentry.issues.test_grouptype",
  568. "tests.sentry.issues.test_ignored",
  569. "tests.sentry.issues.test_ingest",
  570. "tests.sentry.issues.test_issue_occurrence",
  571. "tests.sentry.issues.test_issue_velocity",
  572. "tests.sentry.issues.test_json_schemas",
  573. "tests.sentry.issues.test_merge",
  574. "tests.sentry.issues.test_occurrence_consumer",
  575. "tests.sentry.issues.test_ongoing",
  576. "tests.sentry.issues.test_priority",
  577. "tests.sentry.issues.test_producer",
  578. "tests.sentry.issues.test_run",
  579. "tests.sentry.issues.test_search_issues_dataset",
  580. "tests.sentry.issues.test_status_change",
  581. "tests.sentry.issues.test_status_change_consumer",
  582. "tests.sentry.issues.test_update_inbox",
  583. "tests.sentry.ratelimits.test_leaky_bucket",
  584. "tests.sentry.relay.config.test_metric_extraction",
  585. "tests.sentry.tasks.test_on_demand_metrics",
  586. "tests.sentry.types.test_actor",
  587. "tests.sentry.types.test_region",
  588. "tools.*",
  589. ]
  590. disallow_any_generics = true
  591. disallow_untyped_defs = true
  592. # end: stronger typing