Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
codespell: Fix typos caught by codespell.
Anders Kaseorg7b4a74cc4d34
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.mdindex da127577448..2bddc29a54a 100644--- a/docs/overview/changelog.md+++ b/docs/overview/changelog.md@@ -333,7 +333,7 @@ _Released 2023-05-31_- New webhook integrations: Rundeck.- Reworked linkifiers to use URL templates for the URL patterns.- Improved left sidebar to show more topics within the current stream,- and more private message converations, especially when many are+ and more private message conversations, especially when many areunread.- Reworked the internals of the main message feed scrollbar, fixingseveral longstanding bugs.diff --git a/docs/production/authentication-methods.md b/docs/production/authentication-methods.mdindex c97271932d1..74a1cd48582 100644--- a/docs/production/authentication-methods.md+++ b/docs/production/authentication-methods.md@@ -384,7 +384,7 @@ You can restrict access to your Zulip server to a set of LDAP groupsusing the `AUTH_LDAP_REQUIRE_GROUP` and `AUTH_LDAP_DENY_GROUP`settings in `/etc/zulip/settings.py`.-An example configation for Active Directory group restriction can be:+An example configuration for Active Directory group restriction can be:```pythonimport django_auth_ldapdiff --git a/docs/testing/mypy.md b/docs/testing/mypy.mdindex 681f6d00ea3..231fabdfc82 100644--- a/docs/testing/mypy.md+++ b/docs/testing/mypy.md@@ -184,7 +184,7 @@ class FooTestCase(ZulipTestCase):return self.client_get("/bar")```-We sometimes encounter innaccurate type annotations in the Django+We sometimes encounter inaccurate type annotations in the Djangostubs project. We prefer to address these by [submitting a pullrequest](https://github.com/typeddjango/django-stubs/pulls) to fix theissue in the upstream project, just like we do with `typeshed` bugs.diff --git a/web/src/bundles/hello.ts b/web/src/bundles/hello.tsindex 891be1c66a7..75bd17a2a2b 100644--- a/web/src/bundles/hello.ts+++ b/web/src/bundles/hello.ts@@ -1,4 +1,4 @@-// TODO: Use `common.ts` directly in hello page when `boostrap` is+// TODO: Use `common.ts` directly in hello page when `bootstrap` is// removed from it.import "source-sans/source-sans-3VF.css";diff --git a/web/styles/portico/hello.css b/web/styles/portico/hello.cssindex d9b497a73e2..23aef346d43 100644--- a/web/styles/portico/hello.css+++ b/web/styles/portico/hello.css@@ -705,7 +705,7 @@ ul {}}- /* Make sure breakpoints apprear sorted so that lower breakpoints always+ /* Make sure breakpoints appear sorted so that lower breakpoints alwaysoverride higher ones. */@media (width <= 1320px) {.client-logos {diff --git a/web/styles/portico/integrations.css b/web/styles/portico/integrations.cssindex 60b702d7bde..fc9f5879766 100644--- a/web/styles/portico/integrations.css+++ b/web/styles/portico/integrations.css@@ -217,7 +217,7 @@ $category-text: hsl(219deg 23% 33%);}@media (width <= 906px) {- /* Change it to `display: block` when enabling catergories. */+ /* Change it to `display: block` when enabling categories. */display: none;width: 670px;diff --git a/web/styles/tooltips.css b/web/styles/tooltips.cssindex 9faa4ae0d7e..27c5d6f19a2 100644--- a/web/styles/tooltips.css+++ b/web/styles/tooltips.css@@ -92,7 +92,7 @@space offscreen and cause document to have the wrong scroll height.Setting `display: none` makes sure it doesn't occupy any offscreen space.- NOTE: This data attribtute has changed each time in the past 3 releases and+ NOTE: This data attribute has changed each time in the past 3 releases andif we upgrade tippy from v6, we should check if this attribute is still valid.See https://github.com/atomiks/tippyjs/issues/555 for some discussion on this.diff --git a/web/tests/compose_validate.test.js b/web/tests/compose_validate.test.jsindex f0ef906e42d..1df9bf1009f 100644--- a/web/tests/compose_validate.test.js+++ b/web/tests/compose_validate.test.js@@ -66,7 +66,7 @@ const welcome_bot = {people.add_cross_realm_user(welcome_bot);function test_ui(label, f) {- // The sloppy_$ flag lets us re-use setup from prior tests.+ // The sloppy_$ flag lets us reuse setup from prior tests.run_test(label, (helpers) => {$("#compose-textarea").val("some message");f(helpers);diff --git a/web/tests/markdown_parse.test.js b/web/tests/markdown_parse.test.jsindex ec5ba5fef76..1e53500078c 100644--- a/web/tests/markdown_parse.test.js+++ b/web/tests/markdown_parse.test.js@@ -356,7 +356,7 @@ run_test("topic links ordering by priority", () => {{pattern: "a#(?P<id>[a-z]+)", url_template: "http://example.com/a/{id}"},]);- // There should be 5 link matches in the topic, if ordered from the most priortized to the least:+ // There should be 5 link matches in the topic, if ordered from the most prioritized to the least:// 1. "http" (linkifier)// 2. "b#bar" (linkifier)// 3. "a#asd b#bar" (linkifier)diff --git a/web/tests/settings_user_groups_legacy.test.js b/web/tests/settings_user_groups_legacy.test.jsindex ab1ccc57e71..a8ed597e167 100644--- a/web/tests/settings_user_groups_legacy.test.js+++ b/web/tests/settings_user_groups_legacy.test.js@@ -45,7 +45,7 @@ function reset_test_setup($pill_container_stub) {}function test_ui(label, f) {- // The sloppy_$ flag lets us re-use setup from prior tests.+ // The sloppy_$ flag lets us reuse setup from prior tests.run_test(label, f, {sloppy_$: true});}diff --git a/zerver/models.py b/zerver/models.pyindex 10129cb14d3..d1565fdae64 100644--- a/zerver/models.py+++ b/zerver/models.py@@ -2687,7 +2687,7 @@ class Stream(models.Model):message_retention_days = models.IntegerField(null=True, default=None)# on_delete field here is set to RESTRICT because we don't want to allow- # deleting a user group in case it is referenced by this settig.+ # deleting a user group in case it is referenced by this setting.# We are not using PROTECT since we want to allow deletion of user groups# when realm itself is deleted.can_remove_subscribers_group = models.ForeignKey(UserGroup, on_delete=models.RESTRICT)diff --git a/zerver/openapi/curl_param_value_generators.py b/zerver/openapi/curl_param_value_generators.pyindex 03dba9d259f..168c883d397 100644--- a/zerver/openapi/curl_param_value_generators.py+++ b/zerver/openapi/curl_param_value_generators.py@@ -35,7 +35,7 @@ helpers = ZulipTestCase()def openapi_param_value_generator(endpoints: List[str],) -> Callable[[Callable[[], Dict[str, object]]], Callable[[], Dict[str, object]]]:- """This decorator is used to register OpenAPI param value genarator functions+ """This decorator is used to register OpenAPI param value generator functionswith endpoints. Example usage:@openapi_param_value_generator(["/messages/render:post"])diff --git a/zerver/tests/test_invite.py b/zerver/tests/test_invite.pyindex e6915a1a24e..d97497327b6 100644--- a/zerver/tests/test_invite.py+++ b/zerver/tests/test_invite.py@@ -1636,7 +1636,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!"prereg_user.refresh_from_db()self.assertIsNotNone(prereg_user.created_user)- # Now attempt to re-use the same key.+ # Now attempt to reuse the same key.result = self.client_post("/accounts/register/", {"key": registration_key})self.assertEqual(result.status_code, 404)self.assert_in_response(diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.pyindex c75f129c505..24a2990e30b 100644--- a/zerver/tests/test_markdown.py+++ b/zerver/tests/test_markdown.py@@ -1508,7 +1508,7 @@ class MarkdownTest(ZulipTestCase):"<RealmFilter: zulip: a#(?P<id>[a-z]+) http://example.com/a/{id}>",],)- # There should be 5 link matches in the topic, if ordered from the most priortized to the least:+ # There should be 5 link matches in the topic, if ordered from the most prioritized to the least:# 1. "http" (linkifier)# 2. "b#bar" (linkifier)# 3. "a#asd b#bar" (linkifier)diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.pyindex 62b47c7b314..f5cca48e744 100644--- a/zerver/tests/test_push_notifications.py+++ b/zerver/tests/test_push_notifications.py@@ -1774,7 +1774,7 @@ class HandlePushNotificationTest(PushNotificationTest):# Topic wildcard mention in followed topic should soft reactivate the user# user should be a topic participant- self.send_stream_message(self.user_profile, "Denmark", "topic paticipant")+ self.send_stream_message(self.user_profile, "Denmark", "topic participant")def send_topic_wildcard_mention() -> None:mention = "@**topic**"diff --git a/zerver/tests/test_read_receipts.py b/zerver/tests/test_read_receipts.pyindex 62b1e0de164..f3a24491462 100644--- a/zerver/tests/test_read_receipts.py+++ b/zerver/tests/test_read_receipts.py@@ -117,7 +117,7 @@ class TestReadReceipts(ZulipTestCase):self.assertTrue(hamlet.id not in result.json()["user_ids"])self.assertTrue(cordelia.id in result.json()["user_ids"])- # Reactivate hamlet and verify hamlet appears again in read recipts.+ # Reactivate hamlet and verify hamlet appears again in read receipts.do_reactivate_user(hamlet, acting_user=None)result = self.client_get(f"/json/messages/{message_id}/read_receipts")self.assert_json_success(result)diff --git a/zerver/views/registration.py b/zerver/views/registration.pyindex e45f82df7fc..b63895e541f 100644--- a/zerver/views/registration.py+++ b/zerver/views/registration.py@@ -172,12 +172,12 @@ def check_prereg_key(if realm_creation:assert isinstance(prereg_object, PreregistrationRealm)- # Defensive assert to make sure no mix-up in how .status is set leading to re-use+ # Defensive assert to make sure no mix-up in how .status is set leading to reuse# of a PreregistrationRealm object.assert prereg_object.created_realm is Noneelse:assert isinstance(prereg_object, PreregistrationUser)- # Defensive assert to make sure no mix-up in how .status is set leading to re-use+ # Defensive assert to make sure no mix-up in how .status is set leading to reuse# of a PreregistrationUser object.assert prereg_object.created_user is None