pyproject.toml 39 KB

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