codespell: Fix typos caught by codespell.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-09 11:41:12 -07:00
parent eea59e2edc
commit 7b4a74cc4d
17 changed files with 18 additions and 18 deletions

View File

@ -333,7 +333,7 @@ _Released 2023-05-31_
- New webhook integrations: Rundeck. - New webhook integrations: Rundeck.
- Reworked linkifiers to use URL templates for the URL patterns. - Reworked linkifiers to use URL templates for the URL patterns.
- Improved left sidebar to show more topics within the current stream, - 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 are
unread. unread.
- Reworked the internals of the main message feed scrollbar, fixing - Reworked the internals of the main message feed scrollbar, fixing
several longstanding bugs. several longstanding bugs.

View File

@ -384,7 +384,7 @@ You can restrict access to your Zulip server to a set of LDAP groups
using the `AUTH_LDAP_REQUIRE_GROUP` and `AUTH_LDAP_DENY_GROUP` using the `AUTH_LDAP_REQUIRE_GROUP` and `AUTH_LDAP_DENY_GROUP`
settings in `/etc/zulip/settings.py`. 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:
```python ```python
import django_auth_ldap import django_auth_ldap

View File

@ -184,7 +184,7 @@ class FooTestCase(ZulipTestCase):
return self.client_get("/bar") return self.client_get("/bar")
``` ```
We sometimes encounter innaccurate type annotations in the Django We sometimes encounter inaccurate type annotations in the Django
stubs project. We prefer to address these by [submitting a pull stubs project. We prefer to address these by [submitting a pull
request](https://github.com/typeddjango/django-stubs/pulls) to fix the request](https://github.com/typeddjango/django-stubs/pulls) to fix the
issue in the upstream project, just like we do with `typeshed` bugs. issue in the upstream project, just like we do with `typeshed` bugs.

View File

@ -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. // removed from it.
import "source-sans/source-sans-3VF.css"; import "source-sans/source-sans-3VF.css";

View File

@ -705,7 +705,7 @@ ul {
} }
} }
/* Make sure breakpoints apprear sorted so that lower breakpoints always /* Make sure breakpoints appear sorted so that lower breakpoints always
override higher ones. */ override higher ones. */
@media (width <= 1320px) { @media (width <= 1320px) {
.client-logos { .client-logos {

View File

@ -217,7 +217,7 @@ $category-text: hsl(219deg 23% 33%);
} }
@media (width <= 906px) { @media (width <= 906px) {
/* Change it to `display: block` when enabling catergories. */ /* Change it to `display: block` when enabling categories. */
display: none; display: none;
width: 670px; width: 670px;

View File

@ -92,7 +92,7 @@
space offscreen and cause document to have the wrong scroll height. space offscreen and cause document to have the wrong scroll height.
Setting `display: none` makes sure it doesn't occupy any offscreen space. 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 and
if we upgrade tippy from v6, we should check if this attribute is still valid. if 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. See https://github.com/atomiks/tippyjs/issues/555 for some discussion on this.

View File

@ -66,7 +66,7 @@ const welcome_bot = {
people.add_cross_realm_user(welcome_bot); people.add_cross_realm_user(welcome_bot);
function test_ui(label, f) { 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) => { run_test(label, (helpers) => {
$("#compose-textarea").val("some message"); $("#compose-textarea").val("some message");
f(helpers); f(helpers);

View File

@ -356,7 +356,7 @@ run_test("topic links ordering by priority", () => {
{pattern: "a#(?P<id>[a-z]+)", url_template: "http://example.com/a/{id}"}, {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) // 1. "http" (linkifier)
// 2. "b#bar" (linkifier) // 2. "b#bar" (linkifier)
// 3. "a#asd b#bar" (linkifier) // 3. "a#asd b#bar" (linkifier)

View File

@ -45,7 +45,7 @@ function reset_test_setup($pill_container_stub) {
} }
function test_ui(label, f) { 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}); run_test(label, f, {sloppy_$: true});
} }

View File

@ -2687,7 +2687,7 @@ class Stream(models.Model):
message_retention_days = models.IntegerField(null=True, default=None) message_retention_days = models.IntegerField(null=True, default=None)
# on_delete field here is set to RESTRICT because we don't want to allow # 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 # We are not using PROTECT since we want to allow deletion of user groups
# when realm itself is deleted. # when realm itself is deleted.
can_remove_subscribers_group = models.ForeignKey(UserGroup, on_delete=models.RESTRICT) can_remove_subscribers_group = models.ForeignKey(UserGroup, on_delete=models.RESTRICT)

View File

@ -35,7 +35,7 @@ helpers = ZulipTestCase()
def openapi_param_value_generator( def openapi_param_value_generator(
endpoints: List[str], endpoints: List[str],
) -> Callable[[Callable[[], Dict[str, object]]], Callable[[], Dict[str, object]]]: ) -> 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 functions
with endpoints. Example usage: with endpoints. Example usage:
@openapi_param_value_generator(["/messages/render:post"]) @openapi_param_value_generator(["/messages/render:post"])

View File

@ -1636,7 +1636,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
prereg_user.refresh_from_db() prereg_user.refresh_from_db()
self.assertIsNotNone(prereg_user.created_user) 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}) result = self.client_post("/accounts/register/", {"key": registration_key})
self.assertEqual(result.status_code, 404) self.assertEqual(result.status_code, 404)
self.assert_in_response( self.assert_in_response(

View File

@ -1508,7 +1508,7 @@ class MarkdownTest(ZulipTestCase):
"<RealmFilter: zulip: a#(?P<id>[a-z]+) http://example.com/a/{id}>", "<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) # 1. "http" (linkifier)
# 2. "b#bar" (linkifier) # 2. "b#bar" (linkifier)
# 3. "a#asd b#bar" (linkifier) # 3. "a#asd b#bar" (linkifier)

View File

@ -1774,7 +1774,7 @@ class HandlePushNotificationTest(PushNotificationTest):
# Topic wildcard mention in followed topic should soft reactivate the user # Topic wildcard mention in followed topic should soft reactivate the user
# user should be a topic participant # 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: def send_topic_wildcard_mention() -> None:
mention = "@**topic**" mention = "@**topic**"

View File

@ -117,7 +117,7 @@ class TestReadReceipts(ZulipTestCase):
self.assertTrue(hamlet.id not in result.json()["user_ids"]) self.assertTrue(hamlet.id not in result.json()["user_ids"])
self.assertTrue(cordelia.id 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) do_reactivate_user(hamlet, acting_user=None)
result = self.client_get(f"/json/messages/{message_id}/read_receipts") result = self.client_get(f"/json/messages/{message_id}/read_receipts")
self.assert_json_success(result) self.assert_json_success(result)

View File

@ -172,12 +172,12 @@ def check_prereg_key(
if realm_creation: if realm_creation:
assert isinstance(prereg_object, PreregistrationRealm) 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. # of a PreregistrationRealm object.
assert prereg_object.created_realm is None assert prereg_object.created_realm is None
else: else:
assert isinstance(prereg_object, PreregistrationUser) 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. # of a PreregistrationUser object.
assert prereg_object.created_user is None assert prereg_object.created_user is None