pyproject.toml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760
  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.external_actor",
  116. "sentry.api.bases.incident",
  117. "sentry.api.bases.integration",
  118. "sentry.api.bases.organization_events",
  119. "sentry.api.bases.organization_request_change",
  120. "sentry.api.bases.organizationmember",
  121. "sentry.api.bases.project",
  122. "sentry.api.bases.project_request_change",
  123. "sentry.api.bases.rule",
  124. "sentry.api.bases.sentryapps",
  125. "sentry.api.bases.team",
  126. "sentry.api.endpoints.accept_organization_invite",
  127. "sentry.api.endpoints.artifact_lookup",
  128. "sentry.api.endpoints.auth_config",
  129. "sentry.api.endpoints.auth_login",
  130. "sentry.api.endpoints.catchall",
  131. "sentry.api.endpoints.chunk",
  132. "sentry.api.endpoints.codeowners",
  133. "sentry.api.endpoints.codeowners.index",
  134. "sentry.api.endpoints.event_ai_suggested_fix",
  135. "sentry.api.endpoints.event_apple_crash_report",
  136. "sentry.api.endpoints.event_attachments",
  137. "sentry.api.endpoints.group_details",
  138. "sentry.api.endpoints.group_event_details",
  139. "sentry.api.endpoints.group_events",
  140. "sentry.api.endpoints.group_external_issues",
  141. "sentry.api.endpoints.group_hashes",
  142. "sentry.api.endpoints.group_hashes_split",
  143. "sentry.api.endpoints.group_integration_details",
  144. "sentry.api.endpoints.group_integrations",
  145. "sentry.api.endpoints.group_notes",
  146. "sentry.api.endpoints.group_similar_issues",
  147. "sentry.api.endpoints.group_tagkey_details",
  148. "sentry.api.endpoints.group_tagkey_values",
  149. "sentry.api.endpoints.group_tags",
  150. "sentry.api.endpoints.index",
  151. "sentry.api.endpoints.integration_features",
  152. "sentry.api.endpoints.integrations.install_request",
  153. "sentry.api.endpoints.integrations.plugins.configs_index",
  154. "sentry.api.endpoints.integrations.sentry_apps.details",
  155. "sentry.api.endpoints.integrations.sentry_apps.index",
  156. "sentry.api.endpoints.integrations.sentry_apps.installation.details",
  157. "sentry.api.endpoints.integrations.sentry_apps.installation.index",
  158. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.details",
  159. "sentry.api.endpoints.integrations.sentry_apps.internal_app_token.index",
  160. "sentry.api.endpoints.integrations.sentry_apps.publish_request",
  161. "sentry.api.endpoints.integrations.sentry_apps.requests",
  162. "sentry.api.endpoints.integrations.sentry_apps.stats.details",
  163. "sentry.api.endpoints.integrations.sentry_apps.stats.index",
  164. "sentry.api.endpoints.internal.mail",
  165. "sentry.api.endpoints.notifications.notification_actions_available",
  166. "sentry.api.endpoints.notifications.notification_actions_details",
  167. "sentry.api.endpoints.organization_access_request_details",
  168. "sentry.api.endpoints.organization_code_mapping_codeowners",
  169. "sentry.api.endpoints.organization_code_mapping_details",
  170. "sentry.api.endpoints.organization_code_mappings",
  171. "sentry.api.endpoints.organization_dashboard_details",
  172. "sentry.api.endpoints.organization_dashboards",
  173. "sentry.api.endpoints.organization_details",
  174. "sentry.api.endpoints.organization_events",
  175. "sentry.api.endpoints.organization_events_facets",
  176. "sentry.api.endpoints.organization_events_facets_performance",
  177. "sentry.api.endpoints.organization_events_facets_stats_performance",
  178. "sentry.api.endpoints.organization_events_has_measurements",
  179. "sentry.api.endpoints.organization_events_meta",
  180. "sentry.api.endpoints.organization_events_spans_performance",
  181. "sentry.api.endpoints.organization_events_stats",
  182. "sentry.api.endpoints.organization_events_trace",
  183. "sentry.api.endpoints.organization_events_trends",
  184. "sentry.api.endpoints.organization_group_index",
  185. "sentry.api.endpoints.organization_index",
  186. "sentry.api.endpoints.organization_integration_repos",
  187. "sentry.api.endpoints.organization_issues_count",
  188. "sentry.api.endpoints.organization_member.details",
  189. "sentry.api.endpoints.organization_member.index",
  190. "sentry.api.endpoints.organization_member.requests.invite.details",
  191. "sentry.api.endpoints.organization_member.requests.join",
  192. "sentry.api.endpoints.organization_member_unreleased_commits",
  193. "sentry.api.endpoints.organization_metrics",
  194. "sentry.api.endpoints.organization_metrics_meta",
  195. "sentry.api.endpoints.organization_onboarding_continuation_email",
  196. "sentry.api.endpoints.organization_projects",
  197. "sentry.api.endpoints.organization_projects_experiment",
  198. "sentry.api.endpoints.organization_release_details",
  199. "sentry.api.endpoints.organization_releases",
  200. "sentry.api.endpoints.organization_repositories",
  201. "sentry.api.endpoints.organization_repository_details",
  202. "sentry.api.endpoints.organization_request_project_creation",
  203. "sentry.api.endpoints.organization_search_details",
  204. "sentry.api.endpoints.organization_searches",
  205. "sentry.api.endpoints.organization_sentry_function_details",
  206. "sentry.api.endpoints.organization_sessions",
  207. "sentry.api.endpoints.organization_stats",
  208. "sentry.api.endpoints.organization_tagkey_values",
  209. "sentry.api.endpoints.organization_tags",
  210. "sentry.api.endpoints.organization_teams",
  211. "sentry.api.endpoints.project_app_store_connect_credentials",
  212. "sentry.api.endpoints.project_artifact_bundle_file_details",
  213. "sentry.api.endpoints.project_details",
  214. "sentry.api.endpoints.project_event_details",
  215. "sentry.api.endpoints.project_group_index",
  216. "sentry.api.endpoints.project_index",
  217. "sentry.api.endpoints.project_key_stats",
  218. "sentry.api.endpoints.project_ownership",
  219. "sentry.api.endpoints.project_release_files",
  220. "sentry.api.endpoints.project_release_stats",
  221. "sentry.api.endpoints.project_repo_path_parsing",
  222. "sentry.api.endpoints.project_rule_details",
  223. "sentry.api.endpoints.project_rule_preview",
  224. "sentry.api.endpoints.project_rule_task_details",
  225. "sentry.api.endpoints.project_rules",
  226. "sentry.api.endpoints.project_rules_configuration",
  227. "sentry.api.endpoints.project_servicehook_stats",
  228. "sentry.api.endpoints.project_stacktrace_link",
  229. "sentry.api.endpoints.project_stacktrace_links",
  230. "sentry.api.endpoints.project_tagkey_details",
  231. "sentry.api.endpoints.project_tagkey_values",
  232. "sentry.api.endpoints.project_tags",
  233. "sentry.api.endpoints.project_transaction_names",
  234. "sentry.api.endpoints.project_transfer",
  235. "sentry.api.endpoints.prompts_activity",
  236. "sentry.api.endpoints.rule_snooze",
  237. "sentry.api.endpoints.setup_wizard",
  238. "sentry.api.endpoints.shared_group_details",
  239. "sentry.api.endpoints.source_map_debug",
  240. "sentry.api.endpoints.team_details",
  241. "sentry.api.endpoints.team_release_count",
  242. "sentry.api.endpoints.team_time_to_resolution",
  243. "sentry.api.endpoints.user_authenticator_enroll",
  244. "sentry.api.endpoints.user_details",
  245. "sentry.api.endpoints.user_emails_confirm",
  246. "sentry.api.endpoints.user_identity_config",
  247. "sentry.api.endpoints.user_index",
  248. "sentry.api.endpoints.user_notification_details",
  249. "sentry.api.endpoints.user_notification_fine_tuning",
  250. "sentry.api.endpoints.user_permission_details",
  251. "sentry.api.endpoints.user_permissions",
  252. "sentry.api.endpoints.user_permissions_config",
  253. "sentry.api.endpoints.user_role_details",
  254. "sentry.api.endpoints.user_roles",
  255. "sentry.api.endpoints.user_subscriptions",
  256. "sentry.api.event_search",
  257. "sentry.api.fields.actor",
  258. "sentry.api.helpers.deprecation",
  259. "sentry.api.helpers.events",
  260. "sentry.api.helpers.group_index.delete",
  261. "sentry.api.helpers.group_index.index",
  262. "sentry.api.helpers.group_index.update",
  263. "sentry.api.helpers.group_index.validators.in_commit",
  264. "sentry.api.helpers.group_index.validators.status_details",
  265. "sentry.api.invite_helper",
  266. "sentry.api.issue_search",
  267. "sentry.api.paginator",
  268. "sentry.api.permissions",
  269. "sentry.api.serializers.models.auth_provider",
  270. "sentry.api.serializers.models.dashboard",
  271. "sentry.api.serializers.models.doc_integration",
  272. "sentry.api.serializers.models.environment",
  273. "sentry.api.serializers.models.event",
  274. "sentry.api.serializers.models.external_actor",
  275. "sentry.api.serializers.models.group",
  276. "sentry.api.serializers.models.group_stream",
  277. "sentry.api.serializers.models.incident",
  278. "sentry.api.serializers.models.integration",
  279. "sentry.api.serializers.models.integration_feature",
  280. "sentry.api.serializers.models.notification_action",
  281. "sentry.api.serializers.models.organization",
  282. "sentry.api.serializers.models.organization_member.base",
  283. "sentry.api.serializers.models.plugin",
  284. "sentry.api.serializers.models.project",
  285. "sentry.api.serializers.models.projectcodeowners",
  286. "sentry.api.serializers.models.role",
  287. "sentry.api.serializers.models.rule",
  288. "sentry.api.serializers.models.sentry_app",
  289. "sentry.api.serializers.models.team",
  290. "sentry.api.serializers.models.user",
  291. "sentry.api.serializers.models.user_identity_config",
  292. "sentry.api.serializers.rest_framework.dashboard",
  293. "sentry.api.serializers.rest_framework.doc_integration",
  294. "sentry.api.serializers.rest_framework.mentions",
  295. "sentry.api.serializers.rest_framework.notification_action",
  296. "sentry.api.serializers.rest_framework.release",
  297. "sentry.api.serializers.rest_framework.rule",
  298. "sentry.api.serializers.rest_framework.sentry_app_request",
  299. "sentry.api.serializers.snuba",
  300. "sentry.api.validators.email",
  301. "sentry.auth.access",
  302. "sentry.auth.helper",
  303. "sentry.auth.provider",
  304. "sentry.auth.providers.dummy",
  305. "sentry.auth.providers.github.views",
  306. "sentry.auth.providers.google.views",
  307. "sentry.auth.providers.oauth2",
  308. "sentry.auth.providers.saml2.generic.views",
  309. "sentry.auth.providers.saml2.provider",
  310. "sentry.auth.providers.saml2.rippling.provider",
  311. "sentry.auth.providers.saml2.views",
  312. "sentry.auth.superuser",
  313. "sentry.auth.system",
  314. "sentry.auth.view",
  315. "sentry.db.mixin",
  316. "sentry.db.models.manager.base",
  317. "sentry.db.models.paranoia",
  318. "sentry.db.models.query",
  319. "sentry.db.models.utils",
  320. "sentry.db.postgres.base",
  321. "sentry.db.postgres.creation",
  322. "sentry.db.postgres.decorators",
  323. "sentry.db.router",
  324. "sentry.digests.notifications",
  325. "sentry.discover.endpoints.discover_key_transactions",
  326. "sentry.discover.endpoints.serializers",
  327. "sentry.eventstore.models",
  328. "sentry.features.handler",
  329. "sentry.features.manager",
  330. "sentry.grouping.fingerprinting",
  331. "sentry.grouping.strategies.base",
  332. "sentry.grouping.strategies.configurations",
  333. "sentry.grouping.strategies.hierarchical",
  334. "sentry.grouping.strategies.legacy",
  335. "sentry.grouping.strategies.newstyle",
  336. "sentry.identity.bitbucket.provider",
  337. "sentry.identity.github_enterprise.provider",
  338. "sentry.identity.gitlab.provider",
  339. "sentry.identity.oauth2",
  340. "sentry.identity.pipeline",
  341. "sentry.identity.providers.dummy",
  342. "sentry.identity.slack.provider",
  343. "sentry.identity.vsts.provider",
  344. "sentry.incidents.action_handlers",
  345. "sentry.incidents.endpoints.bases",
  346. "sentry.incidents.endpoints.organization_alert_rule_details",
  347. "sentry.incidents.endpoints.organization_alert_rule_index",
  348. "sentry.incidents.endpoints.organization_incident_comment_details",
  349. "sentry.incidents.endpoints.organization_incident_index",
  350. "sentry.incidents.endpoints.project_alert_rule_task_details",
  351. "sentry.incidents.events",
  352. "sentry.incidents.logic",
  353. "sentry.incidents.models",
  354. "sentry.incidents.subscription_processor",
  355. "sentry.incidents.tasks",
  356. "sentry.ingest.inbound_filters",
  357. "sentry.integrations.aws_lambda.integration",
  358. "sentry.integrations.base",
  359. "sentry.integrations.bitbucket.client",
  360. "sentry.integrations.bitbucket.installed",
  361. "sentry.integrations.bitbucket.integration",
  362. "sentry.integrations.bitbucket.issues",
  363. "sentry.integrations.bitbucket.uninstalled",
  364. "sentry.integrations.bitbucket.webhook",
  365. "sentry.integrations.bitbucket_server.client",
  366. "sentry.integrations.bitbucket_server.integration",
  367. "sentry.integrations.bitbucket_server.webhook",
  368. "sentry.integrations.example.integration",
  369. "sentry.integrations.example.repository",
  370. "sentry.integrations.github.client",
  371. "sentry.integrations.github.integration",
  372. "sentry.integrations.github.issues",
  373. "sentry.integrations.github.repository",
  374. "sentry.integrations.github.webhook",
  375. "sentry.integrations.github_enterprise.integration",
  376. "sentry.integrations.github_enterprise.webhook",
  377. "sentry.integrations.gitlab.client",
  378. "sentry.integrations.gitlab.integration",
  379. "sentry.integrations.gitlab.issues",
  380. "sentry.integrations.gitlab.webhooks",
  381. "sentry.integrations.jira.actions.form",
  382. "sentry.integrations.jira.client",
  383. "sentry.integrations.jira.endpoints.search",
  384. "sentry.integrations.jira.integration",
  385. "sentry.integrations.jira.views.base",
  386. "sentry.integrations.jira.views.sentry_issue_details",
  387. "sentry.integrations.jira.webhooks.base",
  388. "sentry.integrations.jira.webhooks.issue_updated",
  389. "sentry.integrations.jira_server.client",
  390. "sentry.integrations.jira_server.integration",
  391. "sentry.integrations.jira_server.search",
  392. "sentry.integrations.jira_server.webhooks",
  393. "sentry.integrations.manager",
  394. "sentry.integrations.message_builder",
  395. "sentry.integrations.metric_alerts",
  396. "sentry.integrations.mixins.issues",
  397. "sentry.integrations.mixins.notifications",
  398. "sentry.integrations.mixins.repositories",
  399. "sentry.integrations.msteams.actions.form",
  400. "sentry.integrations.msteams.card_builder.base",
  401. "sentry.integrations.msteams.card_builder.issues",
  402. "sentry.integrations.msteams.card_builder.notifications",
  403. "sentry.integrations.msteams.client",
  404. "sentry.integrations.msteams.integration",
  405. "sentry.integrations.msteams.link_identity",
  406. "sentry.integrations.msteams.notifications",
  407. "sentry.integrations.msteams.webhook",
  408. "sentry.integrations.notifications",
  409. "sentry.integrations.pagerduty.actions.form",
  410. "sentry.integrations.pagerduty.client",
  411. "sentry.integrations.pagerduty.integration",
  412. "sentry.integrations.pipeline",
  413. "sentry.integrations.slack.actions.form",
  414. "sentry.integrations.slack.client",
  415. "sentry.integrations.slack.integration",
  416. "sentry.integrations.slack.message_builder.issues",
  417. "sentry.integrations.slack.message_builder.notifications.digest",
  418. "sentry.integrations.slack.message_builder.notifications.issues",
  419. "sentry.integrations.slack.notifications",
  420. "sentry.integrations.slack.unfurl.discover",
  421. "sentry.integrations.slack.utils.channel",
  422. "sentry.integrations.slack.utils.users",
  423. "sentry.integrations.slack.views.link_identity",
  424. "sentry.integrations.slack.views.link_team",
  425. "sentry.integrations.slack.views.unlink_team",
  426. "sentry.integrations.slack.webhooks.action",
  427. "sentry.integrations.slack.webhooks.base",
  428. "sentry.integrations.slack.webhooks.command",
  429. "sentry.integrations.slack.webhooks.event",
  430. "sentry.integrations.utils.commit_context",
  431. "sentry.integrations.utils.sync",
  432. "sentry.integrations.vercel.client",
  433. "sentry.integrations.vercel.integration",
  434. "sentry.integrations.vercel.webhook",
  435. "sentry.integrations.vsts.client",
  436. "sentry.integrations.vsts.integration",
  437. "sentry.integrations.vsts.issues",
  438. "sentry.integrations.vsts.repository",
  439. "sentry.integrations.vsts_extension.integration",
  440. "sentry.issues.escalating_group_forecast",
  441. "sentry.issues.ingest",
  442. "sentry.issues.issue_occurrence",
  443. "sentry.issues.merge",
  444. "sentry.issues.occurrence_consumer",
  445. "sentry.issues.search",
  446. "sentry.issues.status_change",
  447. "sentry.mail.adapter",
  448. "sentry.mail.notifications",
  449. "sentry.management.commands.makemigrations",
  450. "sentry.management.commands.send_fake_data",
  451. "sentry.middleware.access_log",
  452. "sentry.middleware.auth",
  453. "sentry.middleware.integrations.parsers.base",
  454. "sentry.middleware.ratelimit",
  455. "sentry.middleware.subdomain",
  456. "sentry.middleware.superuser",
  457. "sentry.models.artifactbundle",
  458. "sentry.models.auditlogentry",
  459. "sentry.models.integrations.external_issue",
  460. "sentry.models.integrations.sentry_app_installation",
  461. "sentry.models.notificationsetting",
  462. "sentry.models.organizationaccessrequest",
  463. "sentry.models.organizationmember",
  464. "sentry.monitors.consumers.monitor_consumer",
  465. "sentry.monitors.endpoints.base",
  466. "sentry.monitors.endpoints.monitor_ingest_checkin_attachment",
  467. "sentry.monitors.endpoints.monitor_ingest_checkin_details",
  468. "sentry.monitors.endpoints.monitor_ingest_checkin_index",
  469. "sentry.monitors.endpoints.organization_monitor_checkin_attachment",
  470. "sentry.monitors.endpoints.organization_monitor_index",
  471. "sentry.monitors.utils",
  472. "sentry.monkey.pickle",
  473. "sentry.net.http",
  474. "sentry.net.socket",
  475. "sentry.notifications.additional_attachment_manager",
  476. "sentry.notifications.notifications.activity.base",
  477. "sentry.notifications.notifications.activity.new_processing_issues",
  478. "sentry.notifications.notifications.activity.release",
  479. "sentry.notifications.notifications.integration_nudge",
  480. "sentry.notifications.notifications.rules",
  481. "sentry.ownership.grammar",
  482. "sentry.pipeline.base",
  483. "sentry.pipeline.views.base",
  484. "sentry.pipeline.views.nested",
  485. "sentry.plugins.base.notifier",
  486. "sentry.plugins.base.urls",
  487. "sentry.plugins.bases.data_forwarding",
  488. "sentry.plugins.bases.issue",
  489. "sentry.plugins.bases.issue2",
  490. "sentry.plugins.bases.notify",
  491. "sentry.plugins.config",
  492. "sentry.plugins.endpoints",
  493. "sentry.plugins.helpers",
  494. "sentry.plugins.providers.base",
  495. "sentry.plugins.providers.integration_repository",
  496. "sentry.plugins.providers.repository",
  497. "sentry.profiles.task",
  498. "sentry.profiles.utils",
  499. "sentry.quotas.redis",
  500. "sentry.receivers.outbox.control",
  501. "sentry.receivers.releases",
  502. "sentry.receivers.sentry_apps",
  503. "sentry.release_health.metrics_sessions_v2",
  504. "sentry.release_health.sessions",
  505. "sentry.release_health.tasks",
  506. "sentry.replays.endpoints.project_replay_clicks_index",
  507. "sentry.replays.lib.query",
  508. "sentry.reprocessing2",
  509. "sentry.rules.actions.integrations.base",
  510. "sentry.rules.actions.integrations.create_ticket.form",
  511. "sentry.rules.actions.integrations.create_ticket.utils",
  512. "sentry.rules.actions.notify_event_service",
  513. "sentry.rules.conditions.event_attribute",
  514. "sentry.rules.conditions.event_frequency",
  515. "sentry.rules.conditions.level",
  516. "sentry.rules.conditions.tagged_event",
  517. "sentry.rules.filters.assigned_to",
  518. "sentry.rules.filters.latest_release",
  519. "sentry.rules.history.endpoints.project_rule_group_history",
  520. "sentry.rules.history.endpoints.project_rule_stats",
  521. "sentry.rules.history.preview",
  522. "sentry.runner.importer",
  523. "sentry.runner.initializer",
  524. "sentry.scim.endpoints.members",
  525. "sentry.scim.endpoints.teams",
  526. "sentry.scim.endpoints.utils",
  527. "sentry.sdk_updates",
  528. "sentry.search.events.builder.discover",
  529. "sentry.search.events.builder.errors",
  530. "sentry.search.events.builder.metrics",
  531. "sentry.search.events.datasets.discover",
  532. "sentry.search.events.datasets.filter_aliases",
  533. "sentry.search.events.datasets.function_aliases",
  534. "sentry.search.events.datasets.metrics",
  535. "sentry.search.events.datasets.metrics_layer",
  536. "sentry.search.events.datasets.profile_functions",
  537. "sentry.search.events.datasets.profiles",
  538. "sentry.search.events.datasets.spans_metrics",
  539. "sentry.search.events.fields",
  540. "sentry.search.events.filter",
  541. "sentry.search.events.types",
  542. "sentry.search.snuba.backend",
  543. "sentry.search.snuba.executors",
  544. "sentry.search.utils",
  545. "sentry.sentry_apps.apps",
  546. "sentry.sentry_apps.installations",
  547. "sentry.sentry_metrics.configuration",
  548. "sentry.sentry_metrics.consumers.indexer.slicing_router",
  549. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  550. "sentry.shared_integrations.client.base",
  551. "sentry.shared_integrations.client.proxy",
  552. "sentry.similarity.features",
  553. "sentry.snuba.discover",
  554. "sentry.snuba.errors",
  555. "sentry.snuba.issue_platform",
  556. "sentry.snuba.metrics.datasource",
  557. "sentry.snuba.metrics.fields.base",
  558. "sentry.snuba.metrics.query_builder",
  559. "sentry.snuba.metrics_enhanced_performance",
  560. "sentry.snuba.metrics_performance",
  561. "sentry.snuba.sessions",
  562. "sentry.snuba.sessions_v2",
  563. "sentry.snuba.spans_indexed",
  564. "sentry.snuba.spans_metrics",
  565. "sentry.snuba.tasks",
  566. "sentry.stacktraces.functions",
  567. "sentry.tagstore.base",
  568. "sentry.tagstore.snuba.backend",
  569. "sentry.tagstore.types",
  570. "sentry.tasks.auth",
  571. "sentry.tasks.base",
  572. "sentry.tasks.codeowners.update_code_owners_schema",
  573. "sentry.tasks.commit_context",
  574. "sentry.tasks.deliver_from_outbox",
  575. "sentry.tasks.digests",
  576. "sentry.tasks.groupowner",
  577. "sentry.tasks.integrations",
  578. "sentry.tasks.integrations.github.pr_comment",
  579. "sentry.tasks.integrations.migrate_issues",
  580. "sentry.tasks.integrations.migrate_repo",
  581. "sentry.tasks.integrations.slack.find_channel_id_for_rule",
  582. "sentry.tasks.integrations.slack.link_slack_user_identities",
  583. "sentry.tasks.integrations.sync_assignee_outbound_impl",
  584. "sentry.tasks.integrations.sync_status_inbound",
  585. "sentry.tasks.integrations.sync_status_outbound",
  586. "sentry.tasks.merge",
  587. "sentry.tasks.process_buffer",
  588. "sentry.tasks.reprocessing2",
  589. "sentry.tasks.sentry_apps",
  590. "sentry.tasks.store",
  591. "sentry.tasks.unmerge",
  592. "sentry.templatetags.sentry_assets",
  593. "sentry.templatetags.sentry_helpers",
  594. "sentry.templatetags.sentry_plugins",
  595. "sentry.testutils.asserts",
  596. "sentry.testutils.cases",
  597. "sentry.testutils.factories",
  598. "sentry.testutils.fixtures",
  599. "sentry.testutils.helpers.features",
  600. "sentry.testutils.helpers.notifications",
  601. "sentry.testutils.helpers.slack",
  602. "sentry.testutils.helpers.task_runner",
  603. "sentry.testutils.performance_issues.span_builder",
  604. "sentry.testutils.performance_issues.store_transaction",
  605. "sentry.tsdb.base",
  606. "sentry.tsdb.dummy",
  607. "sentry.tsdb.inmemory",
  608. "sentry.tsdb.redis",
  609. "sentry.tsdb.snuba",
  610. "sentry.types.integrations",
  611. "sentry.utils.audit",
  612. "sentry.utils.auth",
  613. "sentry.utils.committers",
  614. "sentry.utils.concurrent",
  615. "sentry.utils.distutils.commands.base",
  616. "sentry.utils.distutils.commands.build_assets",
  617. "sentry.utils.email.signer",
  618. "sentry.utils.locking.backends.migration",
  619. "sentry.utils.performance_issues.detectors.io_main_thread_detector",
  620. "sentry.utils.performance_issues.detectors.mn_plus_one_db_span_detector",
  621. "sentry.utils.performance_issues.detectors.n_plus_one_api_calls_detector",
  622. "sentry.utils.performance_issues.detectors.n_plus_one_db_span_detector",
  623. "sentry.utils.performance_issues.detectors.render_blocking_asset_span_detector",
  624. "sentry.utils.performance_issues.detectors.slow_db_query_detector",
  625. "sentry.utils.performance_issues.performance_detection",
  626. "sentry.utils.query",
  627. "sentry.utils.redis",
  628. "sentry.utils.sentry_apps.webhooks",
  629. "sentry.utils.services",
  630. "sentry.utils.snowflake",
  631. "sentry.utils.snuba",
  632. "sentry.utils.suspect_resolutions.get_suspect_resolutions",
  633. "sentry.utils.suspect_resolutions_releases.get_suspect_resolutions_releases",
  634. "sentry.web.client_config",
  635. "sentry.web.forms.accounts",
  636. "sentry.web.frontend.account_identity",
  637. "sentry.web.frontend.accounts",
  638. "sentry.web.frontend.auth_close",
  639. "sentry.web.frontend.auth_login",
  640. "sentry.web.frontend.auth_logout",
  641. "sentry.web.frontend.auth_organization_login",
  642. "sentry.web.frontend.auth_provider_login",
  643. "sentry.web.frontend.base",
  644. "sentry.web.frontend.debug.debug_assigned_email",
  645. "sentry.web.frontend.debug.debug_codeowners_auto_sync_failure_email",
  646. "sentry.web.frontend.debug.debug_incident_activity_email",
  647. "sentry.web.frontend.debug.debug_incident_trigger_email",
  648. "sentry.web.frontend.debug.debug_mfa_added_email",
  649. "sentry.web.frontend.debug.debug_mfa_removed_email",
  650. "sentry.web.frontend.debug.debug_new_processing_issues_email",
  651. "sentry.web.frontend.debug.debug_organization_integration_request",
  652. "sentry.web.frontend.debug.debug_organization_invite_request",
  653. "sentry.web.frontend.debug.debug_organization_join_request",
  654. "sentry.web.frontend.debug.debug_password_changed_email",
  655. "sentry.web.frontend.debug.debug_recovery_codes_regenerated_email",
  656. "sentry.web.frontend.debug.debug_trigger_error",
  657. "sentry.web.frontend.disabled_member_view",
  658. "sentry.web.frontend.generic",
  659. "sentry.web.frontend.group_plugin_action",
  660. "sentry.web.frontend.idp_email_verification",
  661. "sentry.web.frontend.integration_extension_configuration",
  662. "sentry.web.frontend.js_sdk_loader",
  663. "sentry.web.frontend.newest_issue",
  664. "sentry.web.frontend.oauth_authorize",
  665. "sentry.web.frontend.oauth_token",
  666. "sentry.web.frontend.organization_integration_setup",
  667. "sentry.web.frontend.out",
  668. "sentry.web.frontend.pipeline_advancer",
  669. "sentry.web.frontend.project_event",
  670. "sentry.web.frontend.react_page",
  671. "sentry.web.frontend.reactivate_account",
  672. "sentry.web.frontend.setup_wizard",
  673. "sentry.web.frontend.shared_group_details",
  674. "sentry.web.frontend.twofactor",
  675. "sentry_plugins.asana.plugin",
  676. "sentry_plugins.base",
  677. "sentry_plugins.bitbucket.client",
  678. "sentry_plugins.bitbucket.endpoints.webhook",
  679. "sentry_plugins.bitbucket.mixins",
  680. "sentry_plugins.bitbucket.plugin",
  681. "sentry_plugins.bitbucket.repository_provider",
  682. "sentry_plugins.client",
  683. "sentry_plugins.github.client",
  684. "sentry_plugins.github.plugin",
  685. "sentry_plugins.github.webhooks.base",
  686. "sentry_plugins.github.webhooks.events.push",
  687. "sentry_plugins.github.webhooks.integration",
  688. "sentry_plugins.heroku.plugin",
  689. "sentry_plugins.jira.client",
  690. "sentry_plugins.jira.plugin",
  691. "sentry_plugins.pivotal.plugin",
  692. "sentry_plugins.pushover.plugin",
  693. "sentry_plugins.redmine.forms",
  694. "sentry_plugins.redmine.plugin",
  695. "sentry_plugins.slack.plugin",
  696. "sentry_plugins.splunk.plugin",
  697. "sentry_plugins.trello.plugin",
  698. "sentry_plugins.twilio.plugin",
  699. "tests.sentry.api.bases.test_organization",
  700. "tests.sentry.api.bases.test_project",
  701. "tests.sentry.api.bases.test_sentryapps",
  702. "tests.sentry.api.bases.test_team",
  703. "tests.sentry.api.endpoints.notifications.test_notification_actions_details",
  704. "tests.sentry.api.endpoints.notifications.test_notification_actions_index",
  705. "tests.sentry.api.endpoints.test_event_attachment_details",
  706. "tests.sentry.api.helpers.test_group_index",
  707. "tests.sentry.api.test_authentication",
  708. "tests.sentry.api.test_base",
  709. "tests.sentry.api.test_event_search",
  710. "tests.sentry.api.test_invite_helper",
  711. "tests.sentry.api.test_issue_search",
  712. "tests.sentry.digests.test_notifications",
  713. "tests.sentry.eventstore.test_base",
  714. "tests.sentry.grouping.test_result",
  715. "tests.sentry.identity.test_oauth2",
  716. "tests.sentry.incidents.test_logic",
  717. "tests.sentry.ingest.test_slicing",
  718. "tests.sentry.integrations.github.test_client",
  719. "tests.sentry.integrations.msteams.test_message_builder",
  720. "tests.sentry.integrations.slack.test_requests",
  721. "tests.sentry.issues.test_utils",
  722. "tests.sentry.models.test_organizationmember",
  723. "tests.sentry.replays.test_project_replay_recording_segment_index",
  724. "tests.sentry.replays.unit.test_dead_click_issue",
  725. "tests.sentry.tasks.test_post_process",
  726. ]
  727. disable_error_code = [
  728. "arg-type",
  729. "assignment",
  730. "attr-defined",
  731. "call-arg",
  732. "call-overload",
  733. "dict-item",
  734. "func-returns-value",
  735. "has-type",
  736. "index",
  737. "list-item",
  738. "misc",
  739. "operator",
  740. "override",
  741. "return-value",
  742. "typeddict-item",
  743. "typeddict-unknown-key",
  744. "union-attr",
  745. "unreachable",
  746. "var-annotated",
  747. ]
  748. # end: sentry modules with typing issues