pyproject.toml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. [build-system]
  2. requires = ["setuptools>=40.2.0,<64.0.0", "wheel"]
  3. build-backend = "setuptools.build_meta"
  4. [tool.black]
  5. # File filtering is taken care of in pre-commit.
  6. line-length = 100
  7. target-version = ['py38']
  8. [tool.isort]
  9. profile = "black"
  10. line_length = 100
  11. lines_between_sections = 1
  12. known_first_party = "sentry"
  13. skip = "migrations"
  14. [tool.pytest.ini_options]
  15. python_files = "test_*.py sentry/testutils/*"
  16. # note: When updating the traceback format, make sure to update .github/pytest.json
  17. # We don't use the celery pytest plugin.
  18. addopts = "-ra --tb=short --strict-markers -p no:celery"
  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. selenium_driver = "chrome"
  28. filterwarnings = [
  29. # Consider all warnings to be errors other than the ignored ones.
  30. "error",
  31. # The following warning filters are for pytest only.
  32. # This is so we don't have to wrap most datetime objects in testing code
  33. # with django.utils.timezone.
  34. "ignore:DateTimeField.*naive datetime:RuntimeWarning",
  35. "ignore:.*sentry.digests.backends.dummy.DummyBackend.*:sentry.utils.warnings.UnsupportedBackend",
  36. # pytest has not yet implemented the replacement for this yet
  37. "ignore:The --looponfail command line argument.*",
  38. ]
  39. looponfailroots = ["src", "tests"]
  40. [tool.mypy]
  41. python_version = "3.8"
  42. mypy_path = ["fixtures/stubs-for-mypy"]
  43. plugins = ["pydantic.mypy", "mypy_django_plugin.main", "tools.mypy_helpers.plugin"]
  44. files = ["."]
  45. exclude = ["^.venv/", "^self-hosted/"]
  46. # minimal strictness settings
  47. check_untyped_defs = true
  48. no_implicit_reexport = true
  49. warn_unreachable = true
  50. warn_unused_configs = true
  51. warn_unused_ignores = true
  52. warn_redundant_casts = true
  53. [tool.django-stubs]
  54. django_settings_module = "sentry.conf.server_mypy"
  55. # these have py.typed but incorrect types
  56. [[tool.mypy.overrides]]
  57. module = [
  58. # TODO: these cause type errors when followed
  59. "snuba_sdk.*",
  60. # this package marks itself as typed but has no annotations
  61. "google.cloud.bigtable.*",
  62. # https://github.com/googleapis/python-api-core/pull/453
  63. "google.api_core.retry",
  64. ]
  65. follow_imports = "skip"
  66. # https://github.com/python/mypy/issues/15343
  67. [[tool.mypy.overrides]]
  68. module = "google.*"
  69. ignore_missing_imports = true
  70. # python3 -m tools.mypy_helpers.make_stub_ignores
  71. # begin: missing 3rd party stubs
  72. # - add .pyi files to fixtures/stubs-for-mypy
  73. # - or find a 3rd party stub
  74. [[tool.mypy.overrides]]
  75. module = [
  76. "amqp.*",
  77. "boto3.*",
  78. "botocore.client.*",
  79. "botocore.exceptions.*",
  80. "celery.*",
  81. "confluent_kafka.*",
  82. "cssselect.*",
  83. "datadog.*",
  84. "django_zero_downtime_migrations.backends.postgres.schema.*",
  85. "docker.*",
  86. "fido2.*",
  87. "google_crc32c.*",
  88. "honcho.manager.*",
  89. "honcho.printer.*",
  90. "kombu.*",
  91. "mistune.*",
  92. "onelogin.saml2.auth.*",
  93. "onelogin.saml2.constants.*",
  94. "onelogin.saml2.idp_metadata_parser.*",
  95. "openapi_core.*",
  96. "phabricator.*",
  97. "progressbar.*",
  98. "rb.*",
  99. "requests_oauthlib.*",
  100. "sqlparse.*",
  101. "statsd.*",
  102. "u2flib_server.model.*",
  103. "ua_parser.user_agent_parser.*",
  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.doc_integrations",
  116. "sentry.api.bases.external_actor",
  117. "sentry.api.bases.group",
  118. "sentry.api.bases.incident",
  119. "sentry.api.bases.integration",
  120. "sentry.api.bases.organization_events",
  121. "sentry.api.bases.organization_request_change",
  122. "sentry.api.bases.organizationmember",
  123. "sentry.api.bases.project",
  124. "sentry.api.bases.project_request_change",
  125. "sentry.api.bases.rule",
  126. "sentry.api.bases.sentryapps",
  127. "sentry.api.bases.team",
  128. "sentry.api.endpoints.accept_organization_invite",
  129. "sentry.api.endpoints.artifact_lookup",
  130. "sentry.api.endpoints.auth_config",
  131. "sentry.api.endpoints.auth_login",
  132. "sentry.api.endpoints.avatar.doc_integration",
  133. "sentry.api.endpoints.avatar.sentry_app",
  134. "sentry.api.endpoints.avatar.user",
  135. "sentry.api.endpoints.catchall",
  136. "sentry.api.endpoints.chunk",
  137. "sentry.api.endpoints.codeowners",
  138. "sentry.api.endpoints.codeowners.details",
  139. "sentry.api.endpoints.codeowners.external_actor.team_details",
  140. "sentry.api.endpoints.codeowners.index",
  141. "sentry.api.endpoints.event_ai_suggested_fix",
  142. "sentry.api.endpoints.event_apple_crash_report",
  143. "sentry.api.endpoints.event_attachments",
  144. "sentry.api.endpoints.group_details",
  145. "sentry.api.endpoints.group_event_details",
  146. "sentry.api.endpoints.group_events",
  147. "sentry.api.endpoints.group_external_issues",
  148. "sentry.api.endpoints.group_hashes",
  149. "sentry.api.endpoints.group_hashes_split",
  150. "sentry.api.endpoints.group_integration_details",
  151. "sentry.api.endpoints.group_integrations",
  152. "sentry.api.endpoints.group_notes",
  153. "sentry.api.endpoints.group_similar_issues",
  154. "sentry.api.endpoints.group_stats",
  155. "sentry.api.endpoints.group_tagkey_details",
  156. "sentry.api.endpoints.group_tagkey_values",
  157. "sentry.api.endpoints.group_tags",
  158. "sentry.api.endpoints.index",
  159. "sentry.api.endpoints.integration_features",
  160. "sentry.api.endpoints.integrations.install_request",
  161. "sentry.api.endpoints.integrations.organization_integrations.index",
  162. "sentry.api.endpoints.integrations.plugins.configs_index",
  163. "sentry.api.endpoints.integrations.sentry_apps.details",
  164. "sentry.api.endpoints.integrations.sentry_apps.index",
  165. "sentry.api.endpoints.integrations.sentry_apps.installation.details",
  166. "sentry.api.endpoints.integrations.sentry_apps.installation.index",
  167. "sentry.api.endpoints.integrations.sentry_apps.interaction",
  168. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.details",
  169. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.index",
  170. "sentry.api.endpoints.integrations.sentry_apps.publish_request",
  171. "sentry.api.endpoints.integrations.sentry_apps.requests",
  172. "sentry.api.endpoints.integrations.sentry_apps.stats.details",
  173. "sentry.api.endpoints.integrations.sentry_apps.stats.index",
  174. "sentry.api.endpoints.internal.mail",
  175. "sentry.api.endpoints.internal.stats",
  176. "sentry.api.endpoints.notifications.notification_actions_available",
  177. "sentry.api.endpoints.notifications.notification_actions_details",
  178. "sentry.api.endpoints.organization_access_request_details",
  179. "sentry.api.endpoints.organization_code_mapping_codeowners",
  180. "sentry.api.endpoints.organization_code_mapping_details",
  181. "sentry.api.endpoints.organization_code_mappings",
  182. "sentry.api.endpoints.organization_dashboard_details",
  183. "sentry.api.endpoints.organization_dashboards",
  184. "sentry.api.endpoints.organization_details",
  185. "sentry.api.endpoints.organization_events",
  186. "sentry.api.endpoints.organization_events_facets",
  187. "sentry.api.endpoints.organization_events_facets_performance",
  188. "sentry.api.endpoints.organization_events_facets_stats_performance",
  189. "sentry.api.endpoints.organization_events_has_measurements",
  190. "sentry.api.endpoints.organization_events_meta",
  191. "sentry.api.endpoints.organization_events_spans_performance",
  192. "sentry.api.endpoints.organization_events_stats",
  193. "sentry.api.endpoints.organization_events_trace",
  194. "sentry.api.endpoints.organization_events_trends",
  195. "sentry.api.endpoints.organization_group_index",
  196. "sentry.api.endpoints.organization_group_index_stats",
  197. "sentry.api.endpoints.organization_index",
  198. "sentry.api.endpoints.organization_integration_repos",
  199. "sentry.api.endpoints.organization_issues_count",
  200. "sentry.api.endpoints.organization_member.details",
  201. "sentry.api.endpoints.organization_member.index",
  202. "sentry.api.endpoints.organization_member.requests.invite.details",
  203. "sentry.api.endpoints.organization_member.requests.join",
  204. "sentry.api.endpoints.organization_member_unreleased_commits",
  205. "sentry.api.endpoints.organization_metrics",
  206. "sentry.api.endpoints.organization_metrics_meta",
  207. "sentry.api.endpoints.organization_onboarding_continuation_email",
  208. "sentry.api.endpoints.organization_projects",
  209. "sentry.api.endpoints.organization_projects_experiment",
  210. "sentry.api.endpoints.organization_release_details",
  211. "sentry.api.endpoints.organization_releases",
  212. "sentry.api.endpoints.organization_repositories",
  213. "sentry.api.endpoints.organization_repository_details",
  214. "sentry.api.endpoints.organization_request_project_creation",
  215. "sentry.api.endpoints.organization_search_details",
  216. "sentry.api.endpoints.organization_searches",
  217. "sentry.api.endpoints.organization_sentry_function_details",
  218. "sentry.api.endpoints.organization_sessions",
  219. "sentry.api.endpoints.organization_stats",
  220. "sentry.api.endpoints.organization_tagkey_values",
  221. "sentry.api.endpoints.organization_tags",
  222. "sentry.api.endpoints.organization_teams",
  223. "sentry.api.endpoints.project_app_store_connect_credentials",
  224. "sentry.api.endpoints.project_artifact_bundle_file_details",
  225. "sentry.api.endpoints.project_details",
  226. "sentry.api.endpoints.project_event_details",
  227. "sentry.api.endpoints.project_group_index",
  228. "sentry.api.endpoints.project_group_stats",
  229. "sentry.api.endpoints.project_index",
  230. "sentry.api.endpoints.project_key_stats",
  231. "sentry.api.endpoints.project_ownership",
  232. "sentry.api.endpoints.project_release_files",
  233. "sentry.api.endpoints.project_release_stats",
  234. "sentry.api.endpoints.project_repo_path_parsing",
  235. "sentry.api.endpoints.project_rule_details",
  236. "sentry.api.endpoints.project_rule_preview",
  237. "sentry.api.endpoints.project_rule_task_details",
  238. "sentry.api.endpoints.project_rules",
  239. "sentry.api.endpoints.project_rules_configuration",
  240. "sentry.api.endpoints.project_servicehook_stats",
  241. "sentry.api.endpoints.project_stacktrace_link",
  242. "sentry.api.endpoints.project_stacktrace_links",
  243. "sentry.api.endpoints.project_stats",
  244. "sentry.api.endpoints.project_tagkey_details",
  245. "sentry.api.endpoints.project_tagkey_values",
  246. "sentry.api.endpoints.project_tags",
  247. "sentry.api.endpoints.project_transaction_names",
  248. "sentry.api.endpoints.project_transfer",
  249. "sentry.api.endpoints.project_user_stats",
  250. "sentry.api.endpoints.prompts_activity",
  251. "sentry.api.endpoints.rule_snooze",
  252. "sentry.api.endpoints.setup_wizard",
  253. "sentry.api.endpoints.shared_group_details",
  254. "sentry.api.endpoints.source_map_debug",
  255. "sentry.api.endpoints.team_details",
  256. "sentry.api.endpoints.team_notification_settings_details",
  257. "sentry.api.endpoints.team_release_count",
  258. "sentry.api.endpoints.team_stats",
  259. "sentry.api.endpoints.team_time_to_resolution",
  260. "sentry.api.endpoints.user_authenticator_enroll",
  261. "sentry.api.endpoints.user_details",
  262. "sentry.api.endpoints.user_emails_confirm",
  263. "sentry.api.endpoints.user_identity_config",
  264. "sentry.api.endpoints.user_index",
  265. "sentry.api.endpoints.user_notification_details",
  266. "sentry.api.endpoints.user_notification_fine_tuning",
  267. "sentry.api.endpoints.user_notification_settings_details",
  268. "sentry.api.endpoints.user_permission_details",
  269. "sentry.api.endpoints.user_permissions",
  270. "sentry.api.endpoints.user_permissions_config",
  271. "sentry.api.endpoints.user_role_details",
  272. "sentry.api.endpoints.user_roles",
  273. "sentry.api.endpoints.user_subscriptions",
  274. "sentry.api.event_search",
  275. "sentry.api.fields.actor",
  276. "sentry.api.helpers.deprecation",
  277. "sentry.api.helpers.events",
  278. "sentry.api.helpers.group_index.delete",
  279. "sentry.api.helpers.group_index.index",
  280. "sentry.api.helpers.group_index.update",
  281. "sentry.api.helpers.group_index.validators.in_commit",
  282. "sentry.api.helpers.group_index.validators.status_details",
  283. "sentry.api.invite_helper",
  284. "sentry.api.issue_search",
  285. "sentry.api.paginator",
  286. "sentry.api.permissions",
  287. "sentry.api.serializers.models.auth_provider",
  288. "sentry.api.serializers.models.dashboard",
  289. "sentry.api.serializers.models.doc_integration",
  290. "sentry.api.serializers.models.environment",
  291. "sentry.api.serializers.models.event",
  292. "sentry.api.serializers.models.external_actor",
  293. "sentry.api.serializers.models.group",
  294. "sentry.api.serializers.models.group_stream",
  295. "sentry.api.serializers.models.incident",
  296. "sentry.api.serializers.models.integration",
  297. "sentry.api.serializers.models.integration_feature",
  298. "sentry.api.serializers.models.notification_action",
  299. "sentry.api.serializers.models.organization",
  300. "sentry.api.serializers.models.organization_member.base",
  301. "sentry.api.serializers.models.plugin",
  302. "sentry.api.serializers.models.project",
  303. "sentry.api.serializers.models.projectcodeowners",
  304. "sentry.api.serializers.models.role",
  305. "sentry.api.serializers.models.rule",
  306. "sentry.api.serializers.models.sentry_app",
  307. "sentry.api.serializers.models.team",
  308. "sentry.api.serializers.models.user",
  309. "sentry.api.serializers.models.user_identity_config",
  310. "sentry.api.serializers.rest_framework.dashboard",
  311. "sentry.api.serializers.rest_framework.doc_integration",
  312. "sentry.api.serializers.rest_framework.mentions",
  313. "sentry.api.serializers.rest_framework.notification_action",
  314. "sentry.api.serializers.rest_framework.project",
  315. "sentry.api.serializers.rest_framework.release",
  316. "sentry.api.serializers.rest_framework.rule",
  317. "sentry.api.serializers.rest_framework.sentry_app_request",
  318. "sentry.api.serializers.snuba",
  319. "sentry.api.validators.email",
  320. "sentry.auth.access",
  321. "sentry.auth.helper",
  322. "sentry.auth.provider",
  323. "sentry.auth.providers.dummy",
  324. "sentry.auth.providers.github.views",
  325. "sentry.auth.providers.google.views",
  326. "sentry.auth.providers.oauth2",
  327. "sentry.auth.providers.saml2.generic.views",
  328. "sentry.auth.providers.saml2.provider",
  329. "sentry.auth.providers.saml2.rippling.provider",
  330. "sentry.auth.providers.saml2.views",
  331. "sentry.auth.superuser",
  332. "sentry.auth.system",
  333. "sentry.auth.view",
  334. "sentry.db.mixin",
  335. "sentry.db.models.manager.base",
  336. "sentry.db.models.paranoia",
  337. "sentry.db.models.query",
  338. "sentry.db.models.utils",
  339. "sentry.db.postgres.base",
  340. "sentry.db.postgres.creation",
  341. "sentry.db.postgres.decorators",
  342. "sentry.db.router",
  343. "sentry.digests.notifications",
  344. "sentry.discover.endpoints.discover_key_transactions",
  345. "sentry.discover.endpoints.serializers",
  346. "sentry.eventstore.models",
  347. "sentry.features.handler",
  348. "sentry.features.manager",
  349. "sentry.grouping.fingerprinting",
  350. "sentry.grouping.strategies.base",
  351. "sentry.grouping.strategies.configurations",
  352. "sentry.grouping.strategies.hierarchical",
  353. "sentry.grouping.strategies.legacy",
  354. "sentry.grouping.strategies.newstyle",
  355. "sentry.identity.bitbucket.provider",
  356. "sentry.identity.github_enterprise.provider",
  357. "sentry.identity.gitlab.provider",
  358. "sentry.identity.oauth2",
  359. "sentry.identity.pipeline",
  360. "sentry.identity.providers.dummy",
  361. "sentry.identity.slack.provider",
  362. "sentry.identity.vsts.provider",
  363. "sentry.incidents.action_handlers",
  364. "sentry.incidents.endpoints.bases",
  365. "sentry.incidents.endpoints.organization_alert_rule_details",
  366. "sentry.incidents.endpoints.organization_alert_rule_index",
  367. "sentry.incidents.endpoints.organization_incident_comment_details",
  368. "sentry.incidents.endpoints.organization_incident_index",
  369. "sentry.incidents.endpoints.project_alert_rule_task_details",
  370. "sentry.incidents.events",
  371. "sentry.incidents.logic",
  372. "sentry.incidents.models",
  373. "sentry.incidents.subscription_processor",
  374. "sentry.incidents.tasks",
  375. "sentry.ingest.inbound_filters",
  376. "sentry.integrations.aws_lambda.integration",
  377. "sentry.integrations.base",
  378. "sentry.integrations.bitbucket.client",
  379. "sentry.integrations.bitbucket.installed",
  380. "sentry.integrations.bitbucket.integration",
  381. "sentry.integrations.bitbucket.issues",
  382. "sentry.integrations.bitbucket.uninstalled",
  383. "sentry.integrations.bitbucket.webhook",
  384. "sentry.integrations.bitbucket_server.client",
  385. "sentry.integrations.bitbucket_server.integration",
  386. "sentry.integrations.bitbucket_server.webhook",
  387. "sentry.integrations.example.integration",
  388. "sentry.integrations.example.repository",
  389. "sentry.integrations.github.client",
  390. "sentry.integrations.github.integration",
  391. "sentry.integrations.github.issues",
  392. "sentry.integrations.github.repository",
  393. "sentry.integrations.github.webhook",
  394. "sentry.integrations.github_enterprise.integration",
  395. "sentry.integrations.github_enterprise.webhook",
  396. "sentry.integrations.gitlab.client",
  397. "sentry.integrations.gitlab.integration",
  398. "sentry.integrations.gitlab.issues",
  399. "sentry.integrations.gitlab.webhooks",
  400. "sentry.integrations.jira.actions.form",
  401. "sentry.integrations.jira.client",
  402. "sentry.integrations.jira.endpoints.search",
  403. "sentry.integrations.jira.integration",
  404. "sentry.integrations.jira.views.base",
  405. "sentry.integrations.jira.views.sentry_issue_details",
  406. "sentry.integrations.jira.webhooks.base",
  407. "sentry.integrations.jira.webhooks.issue_updated",
  408. "sentry.integrations.jira_server.client",
  409. "sentry.integrations.jira_server.integration",
  410. "sentry.integrations.jira_server.search",
  411. "sentry.integrations.jira_server.webhooks",
  412. "sentry.integrations.manager",
  413. "sentry.integrations.message_builder",
  414. "sentry.integrations.metric_alerts",
  415. "sentry.integrations.mixins.issues",
  416. "sentry.integrations.mixins.notifications",
  417. "sentry.integrations.mixins.repositories",
  418. "sentry.integrations.msteams.actions.form",
  419. "sentry.integrations.msteams.card_builder.base",
  420. "sentry.integrations.msteams.card_builder.issues",
  421. "sentry.integrations.msteams.card_builder.notifications",
  422. "sentry.integrations.msteams.client",
  423. "sentry.integrations.msteams.integration",
  424. "sentry.integrations.msteams.link_identity",
  425. "sentry.integrations.msteams.notifications",
  426. "sentry.integrations.msteams.webhook",
  427. "sentry.integrations.notifications",
  428. "sentry.integrations.pagerduty.actions.form",
  429. "sentry.integrations.pagerduty.client",
  430. "sentry.integrations.pagerduty.integration",
  431. "sentry.integrations.pipeline",
  432. "sentry.integrations.slack.actions.form",
  433. "sentry.integrations.slack.client",
  434. "sentry.integrations.slack.integration",
  435. "sentry.integrations.slack.message_builder.issues",
  436. "sentry.integrations.slack.message_builder.notifications.digest",
  437. "sentry.integrations.slack.message_builder.notifications.issues",
  438. "sentry.integrations.slack.notifications",
  439. "sentry.integrations.slack.unfurl.discover",
  440. "sentry.integrations.slack.utils.channel",
  441. "sentry.integrations.slack.utils.users",
  442. "sentry.integrations.slack.views.link_identity",
  443. "sentry.integrations.slack.views.link_team",
  444. "sentry.integrations.slack.views.unlink_team",
  445. "sentry.integrations.slack.webhooks.action",
  446. "sentry.integrations.slack.webhooks.base",
  447. "sentry.integrations.slack.webhooks.command",
  448. "sentry.integrations.slack.webhooks.event",
  449. "sentry.integrations.utils.commit_context",
  450. "sentry.integrations.utils.sync",
  451. "sentry.integrations.vercel.client",
  452. "sentry.integrations.vercel.integration",
  453. "sentry.integrations.vercel.webhook",
  454. "sentry.integrations.vsts.client",
  455. "sentry.integrations.vsts.integration",
  456. "sentry.integrations.vsts.issues",
  457. "sentry.integrations.vsts.repository",
  458. "sentry.integrations.vsts_extension.integration",
  459. "sentry.issues.escalating_group_forecast",
  460. "sentry.issues.ingest",
  461. "sentry.issues.issue_occurrence",
  462. "sentry.issues.merge",
  463. "sentry.issues.occurrence_consumer",
  464. "sentry.issues.search",
  465. "sentry.issues.status_change",
  466. "sentry.mail.adapter",
  467. "sentry.mail.notifications",
  468. "sentry.management.commands.makemigrations",
  469. "sentry.management.commands.send_fake_data",
  470. "sentry.middleware.access_log",
  471. "sentry.middleware.auth",
  472. "sentry.middleware.health",
  473. "sentry.middleware.integrations.parsers.base",
  474. "sentry.middleware.integrations.parsers.slack",
  475. "sentry.middleware.ratelimit",
  476. "sentry.middleware.subdomain",
  477. "sentry.middleware.superuser",
  478. "sentry.models.artifactbundle",
  479. "sentry.models.auditlogentry",
  480. "sentry.models.integrations.external_issue",
  481. "sentry.models.integrations.sentry_app_installation",
  482. "sentry.models.notificationsetting",
  483. "sentry.models.organizationaccessrequest",
  484. "sentry.models.organizationmember",
  485. "sentry.monitors.consumers.monitor_consumer",
  486. "sentry.monitors.endpoints.base",
  487. "sentry.monitors.endpoints.monitor_ingest_checkin_attachment",
  488. "sentry.monitors.endpoints.monitor_ingest_checkin_details",
  489. "sentry.monitors.endpoints.monitor_ingest_checkin_index",
  490. "sentry.monitors.endpoints.organization_monitor_checkin_attachment",
  491. "sentry.monitors.endpoints.organization_monitor_details",
  492. "sentry.monitors.endpoints.organization_monitor_index",
  493. "sentry.monitors.utils",
  494. "sentry.monkey.pickle",
  495. "sentry.net.http",
  496. "sentry.net.socket",
  497. "sentry.notifications.additional_attachment_manager",
  498. "sentry.notifications.notifications.activity.base",
  499. "sentry.notifications.notifications.activity.new_processing_issues",
  500. "sentry.notifications.notifications.activity.release",
  501. "sentry.notifications.notifications.integration_nudge",
  502. "sentry.notifications.notifications.rules",
  503. "sentry.notifications.utils.avatar",
  504. "sentry.ownership.grammar",
  505. "sentry.pipeline.base",
  506. "sentry.pipeline.views.base",
  507. "sentry.pipeline.views.nested",
  508. "sentry.plugins.base.notifier",
  509. "sentry.plugins.base.urls",
  510. "sentry.plugins.bases.data_forwarding",
  511. "sentry.plugins.bases.issue",
  512. "sentry.plugins.bases.issue2",
  513. "sentry.plugins.bases.notify",
  514. "sentry.plugins.config",
  515. "sentry.plugins.endpoints",
  516. "sentry.plugins.helpers",
  517. "sentry.plugins.providers.base",
  518. "sentry.plugins.providers.integration_repository",
  519. "sentry.plugins.providers.repository",
  520. "sentry.profiles.task",
  521. "sentry.profiles.utils",
  522. "sentry.quotas.redis",
  523. "sentry.receivers.outbox.control",
  524. "sentry.receivers.releases",
  525. "sentry.receivers.sentry_apps",
  526. "sentry.release_health.metrics_sessions_v2",
  527. "sentry.release_health.sessions",
  528. "sentry.release_health.tasks",
  529. "sentry.replays.endpoints.project_replay_clicks_index",
  530. "sentry.replays.lib.query",
  531. "sentry.reprocessing2",
  532. "sentry.rules.actions.integrations.base",
  533. "sentry.rules.actions.integrations.create_ticket.form",
  534. "sentry.rules.actions.integrations.create_ticket.utils",
  535. "sentry.rules.actions.notify_event_service",
  536. "sentry.rules.conditions.event_attribute",
  537. "sentry.rules.conditions.event_frequency",
  538. "sentry.rules.conditions.level",
  539. "sentry.rules.conditions.tagged_event",
  540. "sentry.rules.filters.assigned_to",
  541. "sentry.rules.filters.latest_release",
  542. "sentry.rules.history.endpoints.project_rule_group_history",
  543. "sentry.rules.history.endpoints.project_rule_stats",
  544. "sentry.rules.history.preview",
  545. "sentry.runner.commands.migrations",
  546. "sentry.runner.importer",
  547. "sentry.runner.initializer",
  548. "sentry.scim.endpoints.members",
  549. "sentry.scim.endpoints.teams",
  550. "sentry.scim.endpoints.utils",
  551. "sentry.sdk_updates",
  552. "sentry.search.events.builder.discover",
  553. "sentry.search.events.builder.metrics",
  554. "sentry.search.events.datasets.discover",
  555. "sentry.search.events.datasets.filter_aliases",
  556. "sentry.search.events.datasets.function_aliases",
  557. "sentry.search.events.datasets.metrics",
  558. "sentry.search.events.datasets.metrics_layer",
  559. "sentry.search.events.datasets.profile_functions",
  560. "sentry.search.events.datasets.profiles",
  561. "sentry.search.events.datasets.spans_metrics",
  562. "sentry.search.events.fields",
  563. "sentry.search.events.filter",
  564. "sentry.search.events.types",
  565. "sentry.search.snuba.backend",
  566. "sentry.search.snuba.executors",
  567. "sentry.search.utils",
  568. "sentry.sentry_apps.apps",
  569. "sentry.sentry_apps.installations",
  570. "sentry.sentry_metrics.configuration",
  571. "sentry.sentry_metrics.consumers.indexer.slicing_router",
  572. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  573. "sentry.shared_integrations.client.base",
  574. "sentry.shared_integrations.client.proxy",
  575. "sentry.similarity.backends.dummy",
  576. "sentry.similarity.features",
  577. "sentry.snuba.discover",
  578. "sentry.snuba.issue_platform",
  579. "sentry.snuba.metrics.datasource",
  580. "sentry.snuba.metrics.fields.base",
  581. "sentry.snuba.metrics.query_builder",
  582. "sentry.snuba.metrics_enhanced_performance",
  583. "sentry.snuba.metrics_performance",
  584. "sentry.snuba.sessions",
  585. "sentry.snuba.sessions_v2",
  586. "sentry.snuba.spans_indexed",
  587. "sentry.snuba.spans_metrics",
  588. "sentry.snuba.tasks",
  589. "sentry.stacktraces.functions",
  590. "sentry.tagstore.base",
  591. "sentry.tagstore.snuba.backend",
  592. "sentry.tagstore.types",
  593. "sentry.tasks.auth",
  594. "sentry.tasks.base",
  595. "sentry.tasks.beacon",
  596. "sentry.tasks.codeowners.update_code_owners_schema",
  597. "sentry.tasks.commit_context",
  598. "sentry.tasks.deliver_from_outbox",
  599. "sentry.tasks.digests",
  600. "sentry.tasks.groupowner",
  601. "sentry.tasks.integrations",
  602. "sentry.tasks.integrations.github.pr_comment",
  603. "sentry.tasks.integrations.migrate_issues",
  604. "sentry.tasks.integrations.migrate_repo",
  605. "sentry.tasks.integrations.slack.find_channel_id_for_rule",
  606. "sentry.tasks.integrations.slack.link_slack_user_identities",
  607. "sentry.tasks.integrations.sync_assignee_outbound_impl",
  608. "sentry.tasks.integrations.sync_status_inbound",
  609. "sentry.tasks.integrations.sync_status_outbound",
  610. "sentry.tasks.merge",
  611. "sentry.tasks.post_process",
  612. "sentry.tasks.process_buffer",
  613. "sentry.tasks.reprocessing2",
  614. "sentry.tasks.sentry_apps",
  615. "sentry.tasks.servicehooks",
  616. "sentry.tasks.store",
  617. "sentry.tasks.unmerge",
  618. "sentry.templatetags.sentry_admin_helpers",
  619. "sentry.templatetags.sentry_assets",
  620. "sentry.templatetags.sentry_helpers",
  621. "sentry.templatetags.sentry_plugins",
  622. "sentry.testutils.asserts",
  623. "sentry.testutils.cases",
  624. "sentry.testutils.factories",
  625. "sentry.testutils.fixtures",
  626. "sentry.testutils.helpers.features",
  627. "sentry.testutils.helpers.notifications",
  628. "sentry.testutils.helpers.slack",
  629. "sentry.testutils.helpers.task_runner",
  630. "sentry.testutils.performance_issues.span_builder",
  631. "sentry.testutils.performance_issues.store_transaction",
  632. "sentry.tsdb.base",
  633. "sentry.tsdb.dummy",
  634. "sentry.tsdb.inmemory",
  635. "sentry.tsdb.redis",
  636. "sentry.tsdb.snuba",
  637. "sentry.types.integrations",
  638. "sentry.utils.audit",
  639. "sentry.utils.auth",
  640. "sentry.utils.committers",
  641. "sentry.utils.concurrent",
  642. "sentry.utils.distutils.commands.base",
  643. "sentry.utils.distutils.commands.build_assets",
  644. "sentry.utils.email.signer",
  645. "sentry.utils.locking.backends.migration",
  646. "sentry.utils.metrics",
  647. "sentry.utils.performance_issues.detectors.io_main_thread_detector",
  648. "sentry.utils.performance_issues.detectors.mn_plus_one_db_span_detector",
  649. "sentry.utils.performance_issues.detectors.n_plus_one_api_calls_detector",
  650. "sentry.utils.performance_issues.detectors.n_plus_one_db_span_detector",
  651. "sentry.utils.performance_issues.detectors.render_blocking_asset_span_detector",
  652. "sentry.utils.performance_issues.detectors.slow_db_query_detector",
  653. "sentry.utils.performance_issues.performance_detection",
  654. "sentry.utils.query",
  655. "sentry.utils.redis",
  656. "sentry.utils.sentry_apps.webhooks",
  657. "sentry.utils.services",
  658. "sentry.utils.snowflake",
  659. "sentry.utils.snuba",
  660. "sentry.utils.suspect_resolutions.get_suspect_resolutions",
  661. "sentry.utils.suspect_resolutions.metric_correlation",
  662. "sentry.utils.suspect_resolutions_releases.get_suspect_resolutions_releases",
  663. "sentry.web.client_config",
  664. "sentry.web.forms.accounts",
  665. "sentry.web.frontend.account_identity",
  666. "sentry.web.frontend.accounts",
  667. "sentry.web.frontend.auth_close",
  668. "sentry.web.frontend.auth_login",
  669. "sentry.web.frontend.auth_logout",
  670. "sentry.web.frontend.auth_organization_login",
  671. "sentry.web.frontend.auth_provider_login",
  672. "sentry.web.frontend.base",
  673. "sentry.web.frontend.debug.debug_assigned_email",
  674. "sentry.web.frontend.debug.debug_codeowners_auto_sync_failure_email",
  675. "sentry.web.frontend.debug.debug_incident_activity_email",
  676. "sentry.web.frontend.debug.debug_incident_trigger_email",
  677. "sentry.web.frontend.debug.debug_mfa_added_email",
  678. "sentry.web.frontend.debug.debug_mfa_removed_email",
  679. "sentry.web.frontend.debug.debug_new_processing_issues_email",
  680. "sentry.web.frontend.debug.debug_organization_integration_request",
  681. "sentry.web.frontend.debug.debug_organization_invite_request",
  682. "sentry.web.frontend.debug.debug_organization_join_request",
  683. "sentry.web.frontend.debug.debug_password_changed_email",
  684. "sentry.web.frontend.debug.debug_recovery_codes_regenerated_email",
  685. "sentry.web.frontend.debug.debug_trigger_error",
  686. "sentry.web.frontend.debug.mail",
  687. "sentry.web.frontend.disabled_member_view",
  688. "sentry.web.frontend.error_404",
  689. "sentry.web.frontend.error_500",
  690. "sentry.web.frontend.error_page_embed",
  691. "sentry.web.frontend.generic",
  692. "sentry.web.frontend.group_plugin_action",
  693. "sentry.web.frontend.idp_email_verification",
  694. "sentry.web.frontend.integration_extension_configuration",
  695. "sentry.web.frontend.js_sdk_loader",
  696. "sentry.web.frontend.newest_issue",
  697. "sentry.web.frontend.oauth_authorize",
  698. "sentry.web.frontend.oauth_token",
  699. "sentry.web.frontend.organization_integration_setup",
  700. "sentry.web.frontend.out",
  701. "sentry.web.frontend.pipeline_advancer",
  702. "sentry.web.frontend.project_event",
  703. "sentry.web.frontend.react_page",
  704. "sentry.web.frontend.reactivate_account",
  705. "sentry.web.frontend.setup_wizard",
  706. "sentry.web.frontend.shared_group_details",
  707. "sentry.web.frontend.twofactor",
  708. "sentry.web.frontend.unsubscribe_notifications",
  709. "sentry_plugins.asana.plugin",
  710. "sentry_plugins.base",
  711. "sentry_plugins.bitbucket.client",
  712. "sentry_plugins.bitbucket.endpoints.webhook",
  713. "sentry_plugins.bitbucket.mixins",
  714. "sentry_plugins.bitbucket.plugin",
  715. "sentry_plugins.bitbucket.repository_provider",
  716. "sentry_plugins.client",
  717. "sentry_plugins.github.client",
  718. "sentry_plugins.github.plugin",
  719. "sentry_plugins.github.webhooks.base",
  720. "sentry_plugins.github.webhooks.events.push",
  721. "sentry_plugins.github.webhooks.integration",
  722. "sentry_plugins.heroku.plugin",
  723. "sentry_plugins.jira.client",
  724. "sentry_plugins.jira.plugin",
  725. "sentry_plugins.pivotal.plugin",
  726. "sentry_plugins.pushover.plugin",
  727. "sentry_plugins.redmine.forms",
  728. "sentry_plugins.redmine.plugin",
  729. "sentry_plugins.slack.plugin",
  730. "sentry_plugins.splunk.plugin",
  731. "sentry_plugins.trello.plugin",
  732. "sentry_plugins.twilio.plugin",
  733. "tests.sentry.api.bases.test_organization",
  734. "tests.sentry.api.bases.test_project",
  735. "tests.sentry.api.bases.test_sentryapps",
  736. "tests.sentry.api.bases.test_team",
  737. "tests.sentry.api.endpoints.notifications.test_notification_actions_details",
  738. "tests.sentry.api.endpoints.notifications.test_notification_actions_index",
  739. "tests.sentry.api.endpoints.test_event_attachment_details",
  740. "tests.sentry.api.helpers.test_group_index",
  741. "tests.sentry.api.test_authentication",
  742. "tests.sentry.api.test_base",
  743. "tests.sentry.api.test_event_search",
  744. "tests.sentry.api.test_invite_helper",
  745. "tests.sentry.api.test_issue_search",
  746. "tests.sentry.digests.test_notifications",
  747. "tests.sentry.eventstore.test_base",
  748. "tests.sentry.grouping.test_result",
  749. "tests.sentry.identity.test_oauth2",
  750. "tests.sentry.incidents.test_logic",
  751. "tests.sentry.ingest.test_slicing",
  752. "tests.sentry.integrations.github.test_client",
  753. "tests.sentry.integrations.msteams.test_message_builder",
  754. "tests.sentry.integrations.slack.test_requests",
  755. "tests.sentry.issues.test_utils",
  756. "tests.sentry.models.test_organizationmember",
  757. "tests.sentry.replays.test_project_replay_recording_segment_index",
  758. "tests.sentry.replays.unit.test_dead_click_issue",
  759. "tests.sentry.tasks.test_post_process",
  760. ]
  761. disable_error_code = [
  762. "arg-type",
  763. "assignment",
  764. "attr-defined",
  765. "call-arg",
  766. "call-overload",
  767. "dict-item",
  768. "func-returns-value",
  769. "has-type",
  770. "index",
  771. "list-item",
  772. "misc",
  773. "operator",
  774. "override",
  775. "return-value",
  776. "typeddict-item",
  777. "typeddict-unknown-key",
  778. "union-attr",
  779. "unreachable",
  780. "var-annotated",
  781. ]
  782. # end: sentry modules with typing issues