pyproject.toml 31 KB

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