pyproject.toml 26 KB

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