pyproject.toml 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  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.organization_integrity_backfill_mixin",
  553. "sentry.models.integrations.sentry_app",
  554. "sentry.models.integrations.sentry_app_installation",
  555. "sentry.models.notificationsetting",
  556. "sentry.models.organizationaccessrequest",
  557. "sentry.models.organizationmember",
  558. "sentry.monitors.consumers.monitor_consumer",
  559. "sentry.monitors.endpoints.base",
  560. "sentry.monitors.endpoints.monitor_ingest_checkin_attachment",
  561. "sentry.monitors.endpoints.monitor_ingest_checkin_details",
  562. "sentry.monitors.endpoints.monitor_ingest_checkin_index",
  563. "sentry.monitors.endpoints.organization_monitor_checkin_attachment",
  564. "sentry.monitors.endpoints.organization_monitor_details",
  565. "sentry.monitors.endpoints.organization_monitor_index",
  566. "sentry.monitors.utils",
  567. "sentry.monkey.pickle",
  568. "sentry.net.http",
  569. "sentry.net.socket",
  570. "sentry.notifications.additional_attachment_manager",
  571. "sentry.notifications.helpers",
  572. "sentry.notifications.notifications.activity.base",
  573. "sentry.notifications.notifications.activity.new_processing_issues",
  574. "sentry.notifications.notifications.activity.release",
  575. "sentry.notifications.notifications.base",
  576. "sentry.notifications.notifications.integration_nudge",
  577. "sentry.notifications.notifications.rules",
  578. "sentry.notifications.utils",
  579. "sentry.notifications.utils.avatar",
  580. "sentry.notifications.utils.participants",
  581. "sentry.onboarding_tasks.backends.organization_onboarding_task",
  582. "sentry.onboarding_tasks.base",
  583. "sentry.options.defaults",
  584. "sentry.ownership.grammar",
  585. "sentry.pipeline.base",
  586. "sentry.pipeline.views.base",
  587. "sentry.pipeline.views.nested",
  588. "sentry.plugins.base.notifier",
  589. "sentry.plugins.base.urls",
  590. "sentry.plugins.bases.data_forwarding",
  591. "sentry.plugins.bases.issue",
  592. "sentry.plugins.bases.issue2",
  593. "sentry.plugins.bases.notify",
  594. "sentry.plugins.config",
  595. "sentry.plugins.endpoints",
  596. "sentry.plugins.helpers",
  597. "sentry.plugins.providers.base",
  598. "sentry.plugins.providers.dummy.repository",
  599. "sentry.plugins.providers.integration_repository",
  600. "sentry.plugins.providers.repository",
  601. "sentry.plugins.sentry_interface_types.models",
  602. "sentry.plugins.sentry_urls.models",
  603. "sentry.plugins.sentry_useragents.models",
  604. "sentry.plugins.sentry_webhooks.plugin",
  605. "sentry.plugins.validators.url",
  606. "sentry.profiles.task",
  607. "sentry.profiles.utils",
  608. "sentry.projectoptions.defaults",
  609. "sentry.queue.command",
  610. "sentry.quotas.redis",
  611. "sentry.receivers.outbox",
  612. "sentry.receivers.outbox.control",
  613. "sentry.receivers.releases",
  614. "sentry.receivers.sentry_apps",
  615. "sentry.release_health.metrics",
  616. "sentry.release_health.metrics_sessions_v2",
  617. "sentry.release_health.sessions",
  618. "sentry.release_health.tasks",
  619. "sentry.replays.endpoints.project_replay_clicks_index",
  620. "sentry.replays.lib.query",
  621. "sentry.replays.query",
  622. "sentry.reprocessing2",
  623. "sentry.roles",
  624. "sentry.rules.actions.integrations.base",
  625. "sentry.rules.actions.integrations.create_ticket.form",
  626. "sentry.rules.actions.integrations.create_ticket.utils",
  627. "sentry.rules.actions.notify_event_service",
  628. "sentry.rules.conditions.event_attribute",
  629. "sentry.rules.conditions.event_frequency",
  630. "sentry.rules.conditions.level",
  631. "sentry.rules.conditions.tagged_event",
  632. "sentry.rules.filters.assigned_to",
  633. "sentry.rules.filters.latest_release",
  634. "sentry.rules.history.endpoints.project_rule_group_history",
  635. "sentry.rules.history.endpoints.project_rule_stats",
  636. "sentry.rules.history.preview",
  637. "sentry.rules.processor",
  638. "sentry.runner.commands.migrations",
  639. "sentry.runner.importer",
  640. "sentry.runner.initializer",
  641. "sentry.scim.endpoints.members",
  642. "sentry.scim.endpoints.teams",
  643. "sentry.scim.endpoints.utils",
  644. "sentry.sdk_updates",
  645. "sentry.search.events.builder.discover",
  646. "sentry.search.events.builder.metrics",
  647. "sentry.search.events.builder.spans_metrics",
  648. "sentry.search.events.datasets.discover",
  649. "sentry.search.events.datasets.filter_aliases",
  650. "sentry.search.events.datasets.function_aliases",
  651. "sentry.search.events.datasets.metrics",
  652. "sentry.search.events.datasets.metrics_layer",
  653. "sentry.search.events.datasets.profile_functions",
  654. "sentry.search.events.datasets.profiles",
  655. "sentry.search.events.datasets.spans_metrics",
  656. "sentry.search.events.fields",
  657. "sentry.search.events.filter",
  658. "sentry.search.events.types",
  659. "sentry.search.snuba.backend",
  660. "sentry.search.snuba.executors",
  661. "sentry.search.utils",
  662. "sentry.sentry_apps.apps",
  663. "sentry.sentry_apps.components",
  664. "sentry.sentry_apps.installations",
  665. "sentry.sentry_metrics.configuration",
  666. "sentry.sentry_metrics.consumers.indexer.slicing_router",
  667. "sentry.sentry_metrics.indexer.postgres.postgres_v2",
  668. "sentry.services.smtp",
  669. "sentry.shared_integrations.client.base",
  670. "sentry.shared_integrations.client.internal",
  671. "sentry.shared_integrations.client.proxy",
  672. "sentry.silo.base",
  673. "sentry.similarity.backends.dummy",
  674. "sentry.similarity.features",
  675. "sentry.snuba.discover",
  676. "sentry.snuba.issue_platform",
  677. "sentry.snuba.metrics",
  678. "sentry.snuba.metrics.datasource",
  679. "sentry.snuba.metrics.fields.base",
  680. "sentry.snuba.metrics.fields.snql",
  681. "sentry.snuba.metrics.mqb_query_transformer",
  682. "sentry.snuba.metrics.query",
  683. "sentry.snuba.metrics.query_builder",
  684. "sentry.snuba.metrics_enhanced_performance",
  685. "sentry.snuba.metrics_performance",
  686. "sentry.snuba.models",
  687. "sentry.snuba.sessions",
  688. "sentry.snuba.sessions_v2",
  689. "sentry.snuba.spans_indexed",
  690. "sentry.snuba.spans_metrics",
  691. "sentry.snuba.tasks",
  692. "sentry.stacktraces.functions",
  693. "sentry.tagstore.base",
  694. "sentry.tagstore.query",
  695. "sentry.tagstore.snuba.backend",
  696. "sentry.tagstore.types",
  697. "sentry.tasks.auth",
  698. "sentry.tasks.auto_resolve_issues",
  699. "sentry.tasks.base",
  700. "sentry.tasks.beacon",
  701. "sentry.tasks.check_auth",
  702. "sentry.tasks.codeowners.update_code_owners_schema",
  703. "sentry.tasks.commit_context",
  704. "sentry.tasks.commits",
  705. "sentry.tasks.deliver_from_outbox",
  706. "sentry.tasks.derive_code_mappings",
  707. "sentry.tasks.digests",
  708. "sentry.tasks.groupowner",
  709. "sentry.tasks.integrations",
  710. "sentry.tasks.integrations.create_comment",
  711. "sentry.tasks.integrations.github.pr_comment",
  712. "sentry.tasks.integrations.migrate_issues",
  713. "sentry.tasks.integrations.migrate_repo",
  714. "sentry.tasks.integrations.slack.find_channel_id_for_rule",
  715. "sentry.tasks.integrations.slack.link_slack_user_identities",
  716. "sentry.tasks.integrations.sync_assignee_outbound_impl",
  717. "sentry.tasks.integrations.sync_status_inbound",
  718. "sentry.tasks.integrations.sync_status_outbound",
  719. "sentry.tasks.integrations.update_comment",
  720. "sentry.tasks.merge",
  721. "sentry.tasks.post_process",
  722. "sentry.tasks.process_buffer",
  723. "sentry.tasks.reprocessing2",
  724. "sentry.tasks.sentry_apps",
  725. "sentry.tasks.servicehooks",
  726. "sentry.tasks.store",
  727. "sentry.tasks.unmerge",
  728. "sentry.templatetags.sentry_admin_helpers",
  729. "sentry.templatetags.sentry_assets",
  730. "sentry.templatetags.sentry_helpers",
  731. "sentry.templatetags.sentry_plugins",
  732. "sentry.testutils.asserts",
  733. "sentry.testutils.cases",
  734. "sentry.testutils.factories",
  735. "sentry.testutils.fixtures",
  736. "sentry.testutils.helpers.features",
  737. "sentry.testutils.helpers.notifications",
  738. "sentry.testutils.helpers.slack",
  739. "sentry.testutils.helpers.task_runner",
  740. "sentry.testutils.performance_issues.span_builder",
  741. "sentry.testutils.performance_issues.store_transaction",
  742. "sentry.tsdb.base",
  743. "sentry.tsdb.dummy",
  744. "sentry.tsdb.inmemory",
  745. "sentry.tsdb.redis",
  746. "sentry.tsdb.snuba",
  747. "sentry.types.integrations",
  748. "sentry.utils.audit",
  749. "sentry.utils.auth",
  750. "sentry.utils.committers",
  751. "sentry.utils.concurrent",
  752. "sentry.utils.distutils.commands.base",
  753. "sentry.utils.distutils.commands.build_assets",
  754. "sentry.utils.email.signer",
  755. "sentry.utils.locking.backends.migration",
  756. "sentry.utils.metrics",
  757. "sentry.utils.performance_issues.detectors.io_main_thread_detector",
  758. "sentry.utils.performance_issues.detectors.mn_plus_one_db_span_detector",
  759. "sentry.utils.performance_issues.detectors.n_plus_one_api_calls_detector",
  760. "sentry.utils.performance_issues.detectors.n_plus_one_db_span_detector",
  761. "sentry.utils.performance_issues.detectors.render_blocking_asset_span_detector",
  762. "sentry.utils.performance_issues.detectors.slow_db_query_detector",
  763. "sentry.utils.performance_issues.performance_detection",
  764. "sentry.utils.query",
  765. "sentry.utils.redis",
  766. "sentry.utils.sdk",
  767. "sentry.utils.sentry_apps.webhooks",
  768. "sentry.utils.services",
  769. "sentry.utils.silo.decorate_models_by_relation",
  770. "sentry.utils.snowflake",
  771. "sentry.utils.snuba",
  772. "sentry.utils.suspect_resolutions.get_suspect_resolutions",
  773. "sentry.utils.suspect_resolutions.metric_correlation",
  774. "sentry.utils.suspect_resolutions_releases.get_suspect_resolutions_releases",
  775. "sentry.web.client_config",
  776. "sentry.web.forms.accounts",
  777. "sentry.web.frontend.account_identity",
  778. "sentry.web.frontend.accounts",
  779. "sentry.web.frontend.auth_close",
  780. "sentry.web.frontend.auth_login",
  781. "sentry.web.frontend.auth_logout",
  782. "sentry.web.frontend.auth_organization_login",
  783. "sentry.web.frontend.auth_provider_login",
  784. "sentry.web.frontend.base",
  785. "sentry.web.frontend.debug.debug_assigned_email",
  786. "sentry.web.frontend.debug.debug_codeowners_auto_sync_failure_email",
  787. "sentry.web.frontend.debug.debug_incident_activity_email",
  788. "sentry.web.frontend.debug.debug_incident_trigger_email",
  789. "sentry.web.frontend.debug.debug_invalid_identity_email",
  790. "sentry.web.frontend.debug.debug_mfa_added_email",
  791. "sentry.web.frontend.debug.debug_mfa_removed_email",
  792. "sentry.web.frontend.debug.debug_new_processing_issues_email",
  793. "sentry.web.frontend.debug.debug_organization_integration_request",
  794. "sentry.web.frontend.debug.debug_organization_invite_request",
  795. "sentry.web.frontend.debug.debug_organization_join_request",
  796. "sentry.web.frontend.debug.debug_password_changed_email",
  797. "sentry.web.frontend.debug.debug_recovery_codes_regenerated_email",
  798. "sentry.web.frontend.debug.debug_trigger_error",
  799. "sentry.web.frontend.debug.mail",
  800. "sentry.web.frontend.disabled_member_view",
  801. "sentry.web.frontend.error_404",
  802. "sentry.web.frontend.error_500",
  803. "sentry.web.frontend.error_page_embed",
  804. "sentry.web.frontend.generic",
  805. "sentry.web.frontend.group_plugin_action",
  806. "sentry.web.frontend.idp_email_verification",
  807. "sentry.web.frontend.integration_extension_configuration",
  808. "sentry.web.frontend.js_sdk_loader",
  809. "sentry.web.frontend.newest_issue",
  810. "sentry.web.frontend.oauth_authorize",
  811. "sentry.web.frontend.oauth_token",
  812. "sentry.web.frontend.organization_integration_setup",
  813. "sentry.web.frontend.out",
  814. "sentry.web.frontend.pipeline_advancer",
  815. "sentry.web.frontend.project_event",
  816. "sentry.web.frontend.react_page",
  817. "sentry.web.frontend.reactivate_account",
  818. "sentry.web.frontend.setup_wizard",
  819. "sentry.web.frontend.shared_group_details",
  820. "sentry.web.frontend.twofactor",
  821. "sentry.web.frontend.unsubscribe_notifications",
  822. "sentry_plugins.asana.plugin",
  823. "sentry_plugins.base",
  824. "sentry_plugins.bitbucket.client",
  825. "sentry_plugins.bitbucket.endpoints.webhook",
  826. "sentry_plugins.bitbucket.mixins",
  827. "sentry_plugins.bitbucket.plugin",
  828. "sentry_plugins.bitbucket.repository_provider",
  829. "sentry_plugins.client",
  830. "sentry_plugins.github.client",
  831. "sentry_plugins.github.options",
  832. "sentry_plugins.github.plugin",
  833. "sentry_plugins.github.webhooks.base",
  834. "sentry_plugins.github.webhooks.events.push",
  835. "sentry_plugins.github.webhooks.integration",
  836. "sentry_plugins.heroku.plugin",
  837. "sentry_plugins.jira.client",
  838. "sentry_plugins.jira.plugin",
  839. "sentry_plugins.pivotal.plugin",
  840. "sentry_plugins.pushover.plugin",
  841. "sentry_plugins.redmine.forms",
  842. "sentry_plugins.redmine.plugin",
  843. "sentry_plugins.sessionstack.plugin",
  844. "sentry_plugins.slack.plugin",
  845. "sentry_plugins.splunk.plugin",
  846. "sentry_plugins.trello.plugin",
  847. "sentry_plugins.twilio.plugin",
  848. "tests.sentry.api.bases.test_organization",
  849. "tests.sentry.api.bases.test_project",
  850. "tests.sentry.api.bases.test_sentryapps",
  851. "tests.sentry.api.bases.test_team",
  852. "tests.sentry.api.endpoints.notifications.test_notification_actions_details",
  853. "tests.sentry.api.endpoints.notifications.test_notification_actions_index",
  854. "tests.sentry.api.endpoints.test_event_attachment_details",
  855. "tests.sentry.api.endpoints.test_organization_metrics",
  856. "tests.sentry.api.helpers.test_group_index",
  857. "tests.sentry.api.serializers.test_project",
  858. "tests.sentry.api.serializers.test_team",
  859. "tests.sentry.api.test_authentication",
  860. "tests.sentry.api.test_base",
  861. "tests.sentry.api.test_event_search",
  862. "tests.sentry.api.test_invite_helper",
  863. "tests.sentry.api.test_issue_search",
  864. "tests.sentry.digests.test_notifications",
  865. "tests.sentry.eventstore.test_base",
  866. "tests.sentry.grouping.test_result",
  867. "tests.sentry.identity.test_oauth2",
  868. "tests.sentry.incidents.endpoints.test_organization_alert_rule_details",
  869. "tests.sentry.incidents.endpoints.test_organization_alert_rule_index",
  870. "tests.sentry.incidents.endpoints.test_organization_incident_details",
  871. "tests.sentry.incidents.endpoints.test_organization_incident_subscription_index",
  872. "tests.sentry.incidents.endpoints.test_project_alert_rule_index",
  873. "tests.sentry.incidents.test_logic",
  874. "tests.sentry.ingest.test_slicing",
  875. "tests.sentry.integrations.github.test_client",
  876. "tests.sentry.integrations.msteams.test_message_builder",
  877. "tests.sentry.integrations.slack.test_requests",
  878. "tests.sentry.issues.test_utils",
  879. "tests.sentry.lang.javascript.test_processor",
  880. "tests.sentry.models.test_organizationmember",
  881. "tests.sentry.models.test_project",
  882. "tests.sentry.release_health.release_monitor",
  883. "tests.sentry.release_health.test_tasks",
  884. "tests.sentry.replays.consumers.test_recording",
  885. "tests.sentry.replays.test_project_replay_recording_segment_details",
  886. "tests.sentry.replays.test_project_replay_recording_segment_index",
  887. "tests.sentry.replays.unit.test_dead_click_issue",
  888. "tests.sentry.search.events.builder.test_metrics",
  889. "tests.sentry.search.events.test_fields",
  890. "tests.sentry.sentry_apps.test_sentry_app_creator",
  891. "tests.sentry.sentry_metrics.consumers.test_slicing_router",
  892. "tests.sentry.sentry_metrics.limiters.test_writes_limiter",
  893. "tests.sentry.sentry_metrics.test_base_indexer",
  894. "tests.sentry.sentry_metrics.test_batch",
  895. "tests.sentry.sentry_metrics.test_multiprocess_steps",
  896. "tests.sentry.snuba.metrics.test_snql",
  897. "tests.sentry.snuba.test_tasks",
  898. "tests.sentry.tagstore.test_types",
  899. "tests.sentry.tasks.deletion.test_scheduled",
  900. "tests.sentry.tasks.test_post_process",
  901. "tests.sentry.web.test_client_config",
  902. "tests.snuba.rules.conditions.test_event_frequency",
  903. "tests.snuba.sessions.test_sessions",
  904. "tests.snuba.tagstore.test_tagstore_backend",
  905. ]
  906. disable_error_code = [
  907. "arg-type",
  908. "assignment",
  909. "attr-defined",
  910. "call-arg",
  911. "call-overload",
  912. "dict-item",
  913. "func-returns-value",
  914. "has-type",
  915. "index",
  916. "list-item",
  917. "misc",
  918. "operator",
  919. "override",
  920. "return-value",
  921. "typeddict-item",
  922. "typeddict-unknown-key",
  923. "union-attr",
  924. "unreachable",
  925. "var-annotated",
  926. ]
  927. # end: sentry modules with typing issues