Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Fix many spelling mistakes.

Anders Kaseorgb0ce4f1bce80
diff --git a/.github/workflows/zulip-ci.yml b/.github/workflows/zulip-ci.yml
index 892a84c8035..22a3778094b 100644
--- a/.github/workflows/zulip-ci.yml
+++ b/.github/workflows/zulip-ci.yml
@@ -41,7 +41,7 @@ jobs:
container: ${{ matrix.docker_image }}
env:
# GitHub Actions sets HOME to /github/home which causes
- # problem later in provison and frontend test that runs
+ # problem later in provision and frontend test that runs
# tools/setup/postgresql-init-dev-db because of the .pgpass
# location. PostgreSQL (psql) expects .pgpass to be at
# /home/github/.pgpass and setting home to `/home/github/`
@@ -195,7 +195,7 @@ jobs:
- name: Upload coverage reports
# Only upload coverage when both frontend and backend
- # tests are ran.
+ # tests are run.
if: ${{ matrix.include_frontend_tests }}
uses: codecov/codecov-action@v2
with:
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index e0a7852dded..b7fcd9e3abf 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -576,7 +576,7 @@ def compute_plan_parameters(
) -> Tuple[datetime, datetime, datetime, int]:
# Everything in Stripe is stored as timestamps with 1 second resolution,
# so standardize on 1 second resolution.
- # TODO talk about leapseconds?
+ # TODO talk about leap seconds?
billing_cycle_anchor = timezone_now().replace(microsecond=0)
if billing_schedule == CustomerPlan.ANNUAL:
period_end = add_months(billing_cycle_anchor, 12)
diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.py
index f4b9f58c607..626b6717fd7 100644
--- a/corporate/views/billing_page.py
+++ b/corporate/views/billing_page.py
@@ -49,7 +49,7 @@ def payment_method_string(stripe_customer: stripe.Customer) -> str:
brand=default_payment_method.card.brand,
last4=default_payment_method.card.last4,
)
- # There might be oneoff stuff we do for a particular customer that
+ # There might be one-off stuff we do for a particular customer that
# would land them here. E.g. by default we don't support ACH for
# automatic payments, but in theory we could add it for a customer via
# the Stripe dashboard.
diff --git a/corporate/views/webhook.py b/corporate/views/webhook.py
index d1a098d8ee5..ec2cc6e798c 100644
--- a/corporate/views/webhook.py
+++ b/corporate/views/webhook.py
@@ -80,7 +80,7 @@ def stripe_webhook(request: HttpRequest) -> HttpResponse:
)
except PaymentIntent.DoesNotExist:
# PaymentIntent that was not manually created from the billing system.
- # Could be an Invoice getting paid which is is not an event we are interested in.
+ # Could be an Invoice getting paid which is not an event we are interested in.
return HttpResponse(status=200)
event.content_type = ContentType.objects.get_for_model(PaymentIntent)
event.object_id = payment_intent.id
@@ -95,7 +95,7 @@ def stripe_webhook(request: HttpRequest) -> HttpResponse:
)
except PaymentIntent.DoesNotExist:
# PaymentIntent that was not manually created from the billing system.
- # Could be an Invoice getting paid which is is not an event we are interested in.
+ # Could be an Invoice getting paid which is not an event we are interested in.
return HttpResponse(status=200)
event.content_type = ContentType.objects.get_for_model(PaymentIntent)
event.object_id = payment_intent.id
diff --git a/docs/THIRDPARTY b/docs/THIRDPARTY
index 32e0ccaed2b..f5f39d90815 100644
--- a/docs/THIRDPARTY
+++ b/docs/THIRDPARTY
@@ -94,7 +94,7 @@ License: Expat
Files: static/assets/icons/ellipsis-v-solid.svg
Copyright: 2017 Fonticons, Inc.
License: CC-BY-4.0
-Comment: This icon is picked from Version 5.13.0 of Fontawesome
+Comment: This icon is picked from Version 5.13.0 of Font Awesome
Files: zerver/lib/markdown/fenced_code.py
Copyright: 2006-2008 Waylan Limberg
diff --git a/docs/contributing/zulipbot-usage.md b/docs/contributing/zulipbot-usage.md
index 3c52e49b793..38c992c48a0 100644
--- a/docs/contributing/zulipbot-usage.md
+++ b/docs/contributing/zulipbot-usage.md
@@ -66,7 +66,7 @@ model GitHub supports).
message-editing** and **area: message view** labels are both related
to the
[Server message view](https://github.com/orgs/zulip/teams/server-message-view)
- team. Feel free to join as many area label teams as as you'd like!
+ team. Feel free to join as many area label teams as you'd like!
After your request to join an area label team is approved, you'll receive
notifications for any issues labeled with the team's corresponding area
diff --git a/docs/documentation/helpcenter.md b/docs/documentation/helpcenter.md
index 66f59780c4f..5b8708f8a51 100644
--- a/docs/documentation/helpcenter.md
+++ b/docs/documentation/helpcenter.md
@@ -63,7 +63,7 @@ the current documentation as a resource and guide as you begin.
- Read through the existing articles in that section and pay attention
to the writing style and [voice](#voice), as well as any
- [Markdown features](#markdown-features) used to enchance the
+ [Markdown features](#markdown-features) used to enhance the
readability of the documentation.
- Should the feature you're documenting be added or merged into an
diff --git a/docs/git/terminology.md b/docs/git/terminology.md
index d8b549b1b32..666af445164 100644
--- a/docs/git/terminology.md
+++ b/docs/git/terminology.md
@@ -41,7 +41,7 @@ current state of the index and advancing HEAD to point at the new
A fast-forward is a special type of merge where you have a revision
and you are "merging" another branch's changes that happen to be a
descendant of what you have. In such these cases, you do not make a
-new mergecommit but instead just update to their revision. This will
+new merge commit but instead just update to their revision. This will
happen frequently on a remote-tracking branch of a remote
repository.
diff --git a/docs/git/troubleshooting.md b/docs/git/troubleshooting.md
index 934d26185f2..76059e74445 100644
--- a/docs/git/troubleshooting.md
+++ b/docs/git/troubleshooting.md
@@ -256,7 +256,7 @@ Zulip, you need to update your local Git database with new refs from your
GitHub fork. You do this with `git fetch`:
```console
-$ git fetch <usermame>
+$ git fetch <username>
```
Ideally you should do this before you have made any commits on the same branch
diff --git a/docs/overview/changelog.md b/docs/overview/changelog.md
index 89ba2285174..cfda864a8cd 100644
--- a/docs/overview/changelog.md
+++ b/docs/overview/changelog.md
@@ -305,7 +305,7 @@ log][commit-log] for an up-to-date list of raw changes.
- Improved formatting for Grafana integration.
- Fixed previews of Dropbox image links.
- Fixed support for storing avatars/emoji in non-S3 upload backends.
-- Fixed an overly strict database constaint for code playgrounds.
+- Fixed an overly strict database constraint for code playgrounds.
- Tagged user status strings for translation.
- Updated translation data from Transifex.
@@ -405,7 +405,7 @@ log][commit-log] for an up-to-date list of raw changes.
- Added new [release lifecycle documentation](../overview/release-lifecycle.md).
- Added support for subscribing another stream's membership to a stream.
- Added RealmAuditLog for most settings state changes in Zulip; this
- data will fascilitate future features showing a log of activity by
+ data will facilitate future features showing a log of activity by
a given user or changes to an organization's settings.
- Added support for using Sentry for processing backend exceptions.
- Added documentation for using `wal-g` for continuous PostgreSQL backups.
@@ -492,7 +492,7 @@ log][commit-log] for an up-to-date list of raw changes.
`can_create_user` and `can_forge_sender` (used for mirroring).
- Various API endpoints creating objects now return the ID of the
created object.
-- Fixed screenreader accessibility of many components, including
+- Fixed screen reader accessibility of many components, including
the compose box, message editing, popovers, and many more.
- Fixed transparency issues uploading some animated GIFs as custom emoji.
- Improved positioning logic for inline YouTube previews.
@@ -822,7 +822,7 @@ log][commit-log] for an up-to-date list of raw changes.
mobile apps.
- Removed the legacy websockets-based system for sending messages. This
system was always a hack, was only ever used for one endpoint, and
- did not provide a measureable latency benefit over HTTP/2.
+ did not provide a measurable latency benefit over HTTP/2.
## Zulip 2.1.x series
@@ -1131,7 +1131,7 @@ details.
- Fixed buggy rendering of bulleted lists inside blockquotes.
- Fixed several bugs with CORS in the nginx configuration.
- Fixed error message for GitHub login attempts with a deactivated account.
-- Fixed email gateway issues with non-latin characters in stream names.
+- Fixed email gateway issues with non-Latin characters in stream names.
- Fixed endless re-synchronization of LDAP user avatars (which
could cause user-visible performance issues for desktop/web clients).
- Fixed all known bugs with advanced LDAP data synchronization.
@@ -1844,7 +1844,7 @@ running a version from before 1.7 should upgrade directly to 1.7.1.
#### Full feature changelog
- Simplified the process for installing a new Zulip server, as well as
- fixing the most common roadbumps and confusing error messages.
+ fixing the most common road bumps and confusing error messages.
- Added a new "incoming webhook" bot type, limited to only sending
messages into Zulip, for better security.
- Added experimental support for outgoing webhooks.
@@ -1928,7 +1928,7 @@ running a version from before 1.7 should upgrade directly to 1.7.1.
- Fixed zombie process leaks on servers with <4GB of RAM.
- Fixed Markdown previews of /me messages.
- Fixed a subtle bug involving timestamps of locally echoed messages.
-- Fixed the behavior of key combintions like Ctrl+Enter in the compose box.
+- Fixed the behavior of key combinations like Ctrl+Enter in the compose box.
- Worked around Google Compute Engine's default boto configuration,
which broke Zulip (and any other app using boto).
- Zulip now will gracefully handle the PostgreSQL server being restarted.
@@ -2403,7 +2403,7 @@ running a version from before 1.7 should upgrade directly to 1.7.1.
/etc/zulip/secrets.conf.
- Improved the styling for the Administration page and added tabs.
- Substantially improved loading performance on slow networks by enabling
- GZIP compression on more assets.
+ gzip compression on more assets.
- Changed the page title in narrowed views to include the current narrow.
- Fixed several backend performance issues affecting very large realms.
- Fixed bugs where draft compose content might be lost when reloading site.
diff --git a/docs/production/deployment.md b/docs/production/deployment.md
index d847c11555e..782f04d3c25 100644
--- a/docs/production/deployment.md
+++ b/docs/production/deployment.md
@@ -284,7 +284,7 @@ variable reverse proxy implementations.
If your Zulip server will not be on the public Internet, we recommend,
installing with the `--self-signed-cert` option (rather than the
-`--certbot` option), since CertBot requires the server to be on the
+`--certbot` option), since Certbot requires the server to be on the
public Internet.
#### Configuring Zulip to allow HTTP
diff --git a/docs/production/export-and-import.md b/docs/production/export-and-import.md
index 9f087a2ec11..1526c80bc62 100644
--- a/docs/production/export-and-import.md
+++ b/docs/production/export-and-import.md
@@ -293,7 +293,7 @@ archive of all the organization's uploaded files.
version of Zulip as the server you're exporting from.
- For exports from Zulip Cloud (zulip.com), you need to [upgrade to
- `main`][upgrade-zulip-from-git], since we run run `main` on
+ `main`][upgrade-zulip-from-git], since we run `main` on
Zulip Cloud:
```bash
diff --git a/docs/production/management-commands.md b/docs/production/management-commands.md
index 9c58c2b3d11..972654220d6 100644
--- a/docs/production/management-commands.md
+++ b/docs/production/management-commands.md
@@ -132,7 +132,7 @@ There are dozens of useful management commands under
For most purposes, deactivating users is preferred, since that does not
alter message history for other users.
See the `./manage.py delete_user --help` documentation for details.
-- `./manage.py clear_auth_rate_limit_history`: If a user failed authenticaton
+- `./manage.py clear_auth_rate_limit_history`: If a user failed authentication
attempts too many times and further attempts are disallowed by the rate limiter,
this can be used to reset the limit.
diff --git a/docs/production/mobile-push-notifications.md b/docs/production/mobile-push-notifications.md
index 9afe3995bf3..3d8efa4acf6 100644
--- a/docs/production/mobile-push-notifications.md
+++ b/docs/production/mobile-push-notifications.md
@@ -126,7 +126,7 @@ and privacy in mind:
registered to be notified by your Zulip server.
- User ID numbers generated by your Zulip server, needed to route
a given notification to the appropriate set of mobile devices.
- These user ID numbers are are opaque to the Push Notification
+ These user ID numbers are opaque to the Push Notification
Service and Kandra Labs.
- The Push Notification Service receives (but does not store) the
contents of individual mobile push notifications:
diff --git a/docs/production/troubleshooting.md b/docs/production/troubleshooting.md
index ba102570a78..0fae39babca 100644
--- a/docs/production/troubleshooting.md
+++ b/docs/production/troubleshooting.md
@@ -158,7 +158,7 @@ regularly install apt upgrades manually!
:::
Restarting one of the system services that Zulip uses (PostgreSQL,
-memcached, Redis, or Rabbitmq) will drop the connections that
+memcached, Redis, or RabbitMQ) will drop the connections that
Zulip processes have to the service, resulting in future operations on
those connections throwing errors.
diff --git a/docs/subsystems/caching.md b/docs/subsystems/caching.md
index 5aecb703a47..2afcec0f74f 100644
--- a/docs/subsystems/caching.md
+++ b/docs/subsystems/caching.md
@@ -44,7 +44,7 @@ doesn't need to worry about whether the data returned is up-to-date:
it is. In the following sections, we'll talk about how we make this
work.
-As a sidenote, the policy of using these accessor functions wherever
+As a side note, the policy of using these accessor functions wherever
possible is a good idea, regardless of caching, because the functions
also generally take care of details you might not think about
(e.g. case-insensitive matching of stream names or email addresses).
diff --git a/docs/subsystems/dependencies.md b/docs/subsystems/dependencies.md
index 4a8396b25f5..fdd89397184 100644
--- a/docs/subsystems/dependencies.md
+++ b/docs/subsystems/dependencies.md
@@ -44,7 +44,7 @@ which is used to help ensure developers don't spend time debugging
test/linter/etc. failures that actually were caused by the developer
rebasing and forgetting to provision". `PROVISION_VERSION` has a
format of `x.y`; when `x` doesn't match the value from the last time
-the user provisioned, or `y` is higher than than the value from last
+the user provisioned, or `y` is higher than the value from last
time, most Zulip tools will crash early and ask the user to provision.
This has empirically made a huge impact on how often developers spend
time debugging a "weird failure" after rebasing that had an easy
diff --git a/docs/subsystems/emoji.md b/docs/subsystems/emoji.md
index 43118142cc2..bf71396e822 100644
--- a/docs/subsystems/emoji.md
+++ b/docs/subsystems/emoji.md
@@ -164,7 +164,7 @@ for that:
- If there are natural things someone might type, like `:happy:`, we try to
find an emoji to match. This extends to things that someone might not
- think to type, but as soon as someone in the organization discovers it it
+ think to type, but as soon as someone in the organization discovers it
could get wide use, like `:working_on_it:`. Good future work would be to
collect (by survey or tooling) things people type into the emoji picker
typeahead on chat.zulip.org, and find ways to add those names as
diff --git a/docs/subsystems/events-system.md b/docs/subsystems/events-system.md
index 401937fa6e8..816c2818f64 100644
--- a/docs/subsystems/events-system.md
+++ b/docs/subsystems/events-system.md
@@ -304,7 +304,7 @@ There are some notable optional parameters for `verify_action`:
doesn't actually require state changes for some reason; otherwise,
`verify_action` will complain that your test doesn't really
exercise any `apply_events` logic. Typing notifications (which
- are ephemereal) are a common place where we use this.
+ are ephemeral) are a common place where we use this.
- `num_events` will tell `verify_action` how many events the
`hamlet` user will receive after the action (the default is 1).
diff --git a/docs/subsystems/markdown.md b/docs/subsystems/markdown.md
index 22411ca72b5..b56ce893f7c 100644
--- a/docs/subsystems/markdown.md
+++ b/docs/subsystems/markdown.md
@@ -5,7 +5,7 @@ formatting. Our Markdown flavor is unique primarily to add important
extensions, such as quote blocks and math blocks, and also to do
previews and correct issues specific to the chat context. Beyond
that, it has a number of minor historical variations resulting from
-its history predacting CommonMark (and thus Zulip choosing different
+its history predating CommonMark (and thus Zulip choosing different
solutions to some problems) and based in part on Python-Markdown,
which is proudly a classic Markdown implementation. We reduce these
variations with every major Zulip release.
diff --git a/docs/subsystems/pointer.md b/docs/subsystems/pointer.md
index 6e3830f7c29..8da3d17c5fe 100644
--- a/docs/subsystems/pointer.md
+++ b/docs/subsystems/pointer.md
@@ -45,7 +45,7 @@ will instead select the first unread message matching that narrow, or
if there are none, the most recent messages matching that narrow.
This provides the nice user experience of taking you to the start of
-the new stuff (with enough messages you'ev seen before still in view
+the new stuff (with enough messages you've seen before still in view
at the top to provide you with context), which is usually what you
want. (When finding the "first unread message", Zulip ignores unread
messages in muted streams or in muted topics within non-muted
diff --git a/docs/subsystems/realms.md b/docs/subsystems/realms.md
index df9acc19b23..a80da68cd2b 100644
--- a/docs/subsystems/realms.md
+++ b/docs/subsystems/realms.md
@@ -1,14 +1,14 @@
# Realms in Zulip
Zulip allows multiple _realms_ to be hosted on a single instance.
-Realms are the Zulip codebases's internal name for what we refer to in
+Realms are the Zulip codebase's internal name for what we refer to in
user-facing documentation as an organization (the name "realm" comes
from [Kerberos](https://web.mit.edu/kerberos/)).
Wherever possible, we avoid using the term `realm` in any user-facing
string or documentation; "Organization" is the equivalent term used in
those contexts (and we have linters that attempt to enforce this rule
-in translateable strings). We may in the future modify Zulip's
+in translatable strings). We may in the future modify Zulip's
internals to use `organization` instead.
The
diff --git a/docs/subsystems/schema-migrations.md b/docs/subsystems/schema-migrations.md
index cb8eeb4f9c3..0daf18de6e8 100644
--- a/docs/subsystems/schema-migrations.md
+++ b/docs/subsystems/schema-migrations.md
@@ -129,7 +129,7 @@ migrations.
the migration can even continue where it left off, without needing
to redo work.
- **Multi-step migrations**. For really big migrations, one wants
- to split the transition into into several commits that are each
+ to split the transition into several commits that are each
individually correct, and can each be deployed independently:
1. First, do a migration to add the new column to the Message table
diff --git a/docs/subsystems/typing-indicators.md b/docs/subsystems/typing-indicators.md
index 710de2f41c4..7692edb0704 100644
--- a/docs/subsystems/typing-indicators.md
+++ b/docs/subsystems/typing-indicators.md
@@ -67,7 +67,7 @@ how long they pause to think, and how frequently they get interrupted.
## Server
-The server piece of typing notificiations is currently pretty
+The server piece of typing notifications is currently pretty
straightforward, since we take advantage of Zulip's
[events system](../subsystems/events-system.md).
diff --git a/docs/testing/continuous-integration.md b/docs/testing/continuous-integration.md
index cc65682ca42..199d068bddb 100644
--- a/docs/testing/continuous-integration.md
+++ b/docs/testing/continuous-integration.md
@@ -83,9 +83,9 @@ the images we use in GitHub Actions for testing.
After booting the container from the configured image, GitHub Actions will
create the directory mentioned in `working_directory` and all the
-steps are be run from here.
+steps will be run from here.
-The `steps` section describes describes everything: fetching the Zulip
+The `steps` section describes everything: fetching the Zulip
code, provisioning, fetching caught data, running tests and uploading
coverage reports. The steps with prefix `*` reference aliases, which
are defined in the `aliases` section at the top of the file.
diff --git a/docs/testing/testing-with-django.md b/docs/testing/testing-with-django.md
index 61c270e5835..1f41d492442 100644
--- a/docs/testing/testing-with-django.md
+++ b/docs/testing/testing-with-django.md
@@ -338,7 +338,7 @@ authentication, that made outgoing HTTP requests to external
servers. We test those features using the excellent
[responses](https://pypi.org/project/responses/) library, which has a
nice interface for mocking `requests` calls to return whatever HTTP
-response from the exteranl server we need for the test. you can find
+response from the external server we need for the test. you can find
examples with `git grep responses.add`. Zulip's own `HostRequestMock`
class should be used only for low-level tests for code that expects to
receive Django HttpRequest object.
diff --git a/docs/testing/testing-with-puppeteer.md b/docs/testing/testing-with-puppeteer.md
index 001c2907df6..77abd44a367 100644
--- a/docs/testing/testing-with-puppeteer.md
+++ b/docs/testing/testing-with-puppeteer.md
@@ -108,7 +108,7 @@ These tools/features are often useful when debugging:
of Puppeteer so you can watch what's happening, and document how to
make that work with Vagrant.
- TODO: Document `--interactive`.
-- TODO: Document how to run 100x in CI to check for nondeterminstic
+- TODO: Document how to run 100x in CI to check for nondeterministic
failures.
- TODO: Document any other techniques/ideas that were helpful when porting
the Casper suite.
@@ -135,7 +135,7 @@ notes above:
- Run just the file containing your new tests as described above to
have a fast debugging cycle.
- When you're done writing a test, run it 100 times in a loop to
- verify it does not fail nondeterminstically (see above for notes on
+ verify it does not fail nondeterministically (see above for notes on
how to get CI to do it for you); this is important to avoid
introducing extremely annoying nondeterministic failures into
`main`.
diff --git a/docs/testing/typescript.md b/docs/testing/typescript.md
index 2215e0935f1..5b30a0d1e88 100644
--- a/docs/testing/typescript.md
+++ b/docs/testing/typescript.md
@@ -39,7 +39,7 @@ continually recheck the files as you edit them.
## Linting and style
-We use the Eslint plugin for TypeScript to lint TypeScript code, just
+We use the ESLint plugin for TypeScript to lint TypeScript code, just
like we do for JavaScript. Our long-term goal is to use an idiomatic
TypeScript style for our TypeScript codebase.
@@ -49,7 +49,7 @@ JavaScript code, so that we can easily migrate individual modules
without too much code churn. A few examples:
- TypeScript generally prefers explicit `return undefined;`, whereas
- our existing JavasScript style uses just `return;`.
+ our existing JavaScript style uses just `return;`.
- With TypeScript, we expect to make heavy use of `let` and `const`
rather than `var`.
- With TypeScript/ES6, we may no longer need to use `_.each()` as our
diff --git a/docs/translating/german.md b/docs/translating/german.md
index dc55db29d87..312ed9b5e61 100644
--- a/docs/translating/german.md
+++ b/docs/translating/german.md
@@ -20,7 +20,7 @@ in a more colloquial style, German translations should be rather informal as wel
say _"Dieser Fehler tritt häufiger auf."_
- "Das ist die Seite, wo der Quelltext steht." - the "_wo_" is regional,
- say _"Das ist die Seite, auf der der Quelltext steht."_ instead.
+ say _"Das ist die Seite, auf der Quelltext steht."_ instead.
### Form of address
diff --git a/docs/translating/internationalization.md b/docs/translating/internationalization.md
index e017869fbef..011d7bd8b7d 100644
--- a/docs/translating/internationalization.md
+++ b/docs/translating/internationalization.md
@@ -48,7 +48,7 @@ to understand when implementing an internationalized application:
translate the content.
- **Word order** varies between languages (e.g. some languages put
subjects before verbs, others the other way around). This means
- that **concatenating translateable strings** produces broken results
+ that **concatenating translatable strings** produces broken results
(more details with examples are below).
- The **width of the string needed to express something** varies
dramatically between languages; this means you can't just hardcode a
@@ -202,7 +202,7 @@ class Realm(models.Model):
STREAM_EVENTS_NOTIFICATION_TOPIC = gettext_lazy('stream events')
```
-To ensure we always internationalize our JSON errors messages, the
+To ensure we always internationalize our JSON error messages, the
Zulip linter (`tools/lint`) attempts to verify correct usage.
## Frontend translations
diff --git a/docs/translating/translating.md b/docs/translating/translating.md
index aeb4aeeeff8..3686582b123 100644
--- a/docs/translating/translating.md
+++ b/docs/translating/translating.md
@@ -7,7 +7,7 @@ Zulip.
Additionally, the Zulip UI is translated into more than a dozen major
languages, including Spanish, German, Hindi, French, Chinese, Russian,
and Japanese, and we're always excited to add more. If you speak a
-language other than English, your help with translating Zulip is be
+language other than English, your help with translating Zulip would be
greatly appreciated!
If you are interested in knowing about the technical end-to-end
diff --git a/docs/tutorials/writing-views.md b/docs/tutorials/writing-views.md
index 3f76e848e73..b066579391f 100644
--- a/docs/tutorials/writing-views.md
+++ b/docs/tutorials/writing-views.md
@@ -102,7 +102,7 @@ Templates for the main website are found in
## Writing API REST endpoints
-These are code-parseable views that take x-www-form-urlencoded or JSON
+These are code-parsable views that take x-www-form-urlencoded or JSON
request bodies, and return JSON-string responses. Almost all Zulip
view code is in the implementations of API REST endpoints.
@@ -135,7 +135,7 @@ one of several bad outcomes:
- Every view function comes with another function that does the
validation that has the problems from the last bullet point.
-In Zulip, we solve this problem with a the special decorator called
+In Zulip, we solve this problem with a special decorator called
`has_request_variables` which allows a developer to declare the
arguments a view function takes and validate their types all within
the `def` line of the function. We like this framework because we
@@ -275,7 +275,7 @@ def update_realm(
`realm.save()` actually saves the changes to the realm to the
database, and `send_event` sends the event to active clients belonging
-to the provided list of users (in this case, all altive users in the
+to the provided list of users (in this case, all active users in the
Zulip realm).
### Calling from the web application
diff --git a/frontend_tests/node_tests/buddy_data.js b/frontend_tests/node_tests/buddy_data.js
index 0c93de58b55..41de0286e3e 100644
--- a/frontend_tests/node_tests/buddy_data.js
+++ b/frontend_tests/node_tests/buddy_data.js
@@ -242,7 +242,7 @@ test("compose fade interactions (PMs)", () => {
return buddy_data.get_item(fred.user_id).faded;
}
- // Dont fade if we're not in a narrow.
+ // Don't fade if we're not in a narrow.
assert.equal(faded(), false);
// Fade fred if we are narrowed to a PM narrow that does
diff --git a/frontend_tests/node_tests/i18n.js b/frontend_tests/node_tests/i18n.js
index 153eaac73f7..473be1abb9d 100644
--- a/frontend_tests/node_tests/i18n.js
+++ b/frontend_tests/node_tests/i18n.js
@@ -21,7 +21,7 @@ page_params.translation_data = {
};
// Re-register Zulip extensions so extensions registered previously with
-// mocked i18n.ts do not interefere with following tests.
+// mocked i18n.ts do not interfere with following tests.
require("../../static/js/templates");
// All of our other tests stub out i18n activity;
diff --git a/frontend_tests/node_tests/list_widget.js b/frontend_tests/node_tests/list_widget.js
index 7b51c2f2e9d..1fb36703ce6 100644
--- a/frontend_tests/node_tests/list_widget.js
+++ b/frontend_tests/node_tests/list_widget.js
@@ -845,7 +845,7 @@ run_test("Multiselect dropdown retain_selected_items", () => {
container.html = () => {};
container.find = (elem) => DropdownItem(elem);
- // We essentially create fake Jquery functions
+ // We essentially create fake jQuery functions
// whose return value are stored in objects so that
// they can be later asserted with expected values.
function DropdownItem(element) {
diff --git a/frontend_tests/node_tests/message_list_view.js b/frontend_tests/node_tests/message_list_view.js
index 54f6bf66a59..fbfa80c4658 100644
--- a/frontend_tests/node_tests/message_list_view.js
+++ b/frontend_tests/node_tests/message_list_view.js
@@ -347,7 +347,7 @@ test("muted_message_vars", () => {
test("merge_message_groups", () => {
// MessageListView has lots of DOM code, so we are going to test the message
- // group mearging logic on its own.
+ // group merging logic on its own.
function build_message_context(message = {}, message_context = {}) {
message_context = {
diff --git a/frontend_tests/node_tests/muting.js b/frontend_tests/node_tests/muting.js
index 54a7cffe0ae..e3773efbbcd 100644
--- a/frontend_tests/node_tests/muting.js
+++ b/frontend_tests/node_tests/muting.js
@@ -62,14 +62,14 @@ test("add_and_remove_mutes", () => {
muted_topics.add_muted_topic(devel.stream_id, "java");
assert.ok(muted_topics.is_topic_muted(devel.stream_id, "java"));
- // test idempotentcy
+ // test idempotency
muted_topics.add_muted_topic(devel.stream_id, "java");
assert.ok(muted_topics.is_topic_muted(devel.stream_id, "java"));
muted_topics.remove_muted_topic(devel.stream_id, "java");
assert.ok(!muted_topics.is_topic_muted(devel.stream_id, "java"));
- // test idempotentcy
+ // test idempotency
muted_topics.remove_muted_topic(devel.stream_id, "java");
assert.ok(!muted_topics.is_topic_muted(devel.stream_id, "java"));
@@ -81,14 +81,14 @@ test("add_and_remove_mutes", () => {
muted_users.add_muted_user(1);
assert.ok(muted_users.is_user_muted(1));
- // test idempotentcy
+ // test idempotency
muted_users.add_muted_user(1);
assert.ok(muted_users.is_user_muted(1));
muted_users.remove_muted_user(1);
assert.ok(!muted_users.is_user_muted(1));
- // test idempotentcy
+ // test idempotency
muted_users.remove_muted_user(1);
assert.ok(!muted_users.is_user_muted(1));
});
diff --git a/frontend_tests/node_tests/narrow_local.js b/frontend_tests/node_tests/narrow_local.js
index acb5c14cd32..a7e807bfec3 100644
--- a/frontend_tests/node_tests/narrow_local.js
+++ b/frontend_tests/node_tests/narrow_local.js
@@ -18,7 +18,7 @@ function test_with(fixture) {
narrow_state.set_current_filter(filter);
// Make sure our simulated tests data satisfies the
- // invarariant that the first unread message we find
+ // invariant that the first unread message we find
// does indeed satisfy our filter.
if (fixture.unread_info.flavor === "found") {
for (const msg of fixture.all_messages) {
diff --git a/frontend_tests/node_tests/pill_typeahead.js b/frontend_tests/node_tests/pill_typeahead.js
index 07eeb1c821a..0f5f3309dcc 100644
--- a/frontend_tests/node_tests/pill_typeahead.js
+++ b/frontend_tests/node_tests/pill_typeahead.js
@@ -21,7 +21,7 @@ let sort_recipients_called = false;
let sort_streams_called = false;
const fake_rendered_person = $.create("fake-rendered-person");
const fake_rendered_stream = $.create("fake-rendered-stream");
-const fake_rendered_group = $.create("fake-redered-group");
+const fake_rendered_group = $.create("fake-rendered-group");
mock_esm("../../static/js/typeahead_helper", {
render_person() {
diff --git a/frontend_tests/node_tests/reactions.js b/frontend_tests/node_tests/reactions.js
index e6f43722f89..e72a0d57cb7 100644
--- a/frontend_tests/node_tests/reactions.js
+++ b/frontend_tests/node_tests/reactions.js
@@ -320,7 +320,7 @@ test("sending", ({override, override_rewire}) => {
emoji_name = "inactive_realm_emoji";
{
- // Test removing a deactivated realm emoji. An user can interact with a
+ // Test removing a deactivated realm emoji. A user can interact with a
// deactivated realm emoji only by clicking on a reaction, hence, only
// `process_reaction_click()` codepath supports deleting/adding a deactivated
// realm emoji.
diff --git a/frontend_tests/node_tests/recent_topics.js b/frontend_tests/node_tests/recent_topics.js
index bbced5e4c96..f827ec63a42 100644
--- a/frontend_tests/node_tests/recent_topics.js
+++ b/frontend_tests/node_tests/recent_topics.js
@@ -911,7 +911,7 @@ test("test_topic_edit", ({override, override_rewire}) => {
assert.equal(all_topics.get(get_topic_key(stream2, topic1)), undefined);
verify_topic_data(all_topics, stream3, topic9, messages[0].id, true);
- // Message was moveed to a deleted stream, hence hidden regardless of filter.
+ // Message was moved to a deleted stream, hence hidden regardless of filter.
messages[0].stream_id = stream5;
messages[0].topic = topic8;
rt.process_topic_edit(stream3, topic9, topic8, stream5);
diff --git a/frontend_tests/node_tests/rendered_markdown.js b/frontend_tests/node_tests/rendered_markdown.js
index 00a98194f9b..852b9a2c361 100644
--- a/frontend_tests/node_tests/rendered_markdown.js
+++ b/frontend_tests/node_tests/rendered_markdown.js
@@ -241,7 +241,7 @@ run_test("stream-links", () => {
run_test("timestamp without time", () => {
const $content = get_content_element();
- const $timestamp = $.create("timestampe without actual time");
+ const $timestamp = $.create("timestamp without actual time");
$content.set_find_results("time", $array([$timestamp]));
rm.update_elements($content);
diff --git a/frontend_tests/node_tests/typeahead_helper.js b/frontend_tests/node_tests/typeahead_helper.js
index 1b2e803b1c3..1b25b228eb9 100644
--- a/frontend_tests/node_tests/typeahead_helper.js
+++ b/frontend_tests/node_tests/typeahead_helper.js
@@ -524,7 +524,7 @@ test("sort_recipients subscribers", () => {
test("sort_recipients pm partners", () => {
// b_user_3 is a pm partner and b_user_2 is not and
- // both are not subscribered to the stream Linux.
+ // both are not subscribed to the stream Linux.
const small_matches = [b_user_3, b_user_2];
const recipients = th.sort_recipients({
users: small_matches,
diff --git a/frontend_tests/node_tests/vdom.js b/frontend_tests/node_tests/vdom.js
index 0816d933cc2..f8126af301d 100644
--- a/frontend_tests/node_tests/vdom.js
+++ b/frontend_tests/node_tests/vdom.js
@@ -232,7 +232,7 @@ run_test("eq_array easy cases", () => {
assert.equal(vdom.eq_array(x, z, eq), false);
});
-run_test("eq_array elementwise", () => {
+run_test("eq_array element-wise", () => {
const a = [51, 32, 93];
const b = [31, 52, 43];
const eq = (a, b) => a % 10 === b % 10;
diff --git a/frontend_tests/node_tests/zblueslip.js b/frontend_tests/node_tests/zblueslip.js
index 85e65d65fd5..25303f4254b 100644
--- a/frontend_tests/node_tests/zblueslip.js
+++ b/frontend_tests/node_tests/zblueslip.js
@@ -62,7 +62,7 @@ run_test("basics", () => {
blueslip.reset();
});
- // Let's repeat the above procedue with warnings. Unlike errors,
+ // Let's repeat the above procedure with warnings. Unlike errors,
// warnings shouldn't stop the code execution, and thus, the
// behaviour is slightly different.
diff --git a/frontend_tests/node_tests/zjquery.js b/frontend_tests/node_tests/zjquery.js
index 9271ea7be54..f0a0f1cdfc5 100644
--- a/frontend_tests/node_tests/zjquery.js
+++ b/frontend_tests/node_tests/zjquery.js
@@ -19,7 +19,7 @@ What is zjquery?
complexity of jQuery. It also allows you to mostly simulate DOM for the
purposes of unit testing, so that your tests focus on component interactions
that aren't super tightly coupled to building the DOM. The tests also run
- faster! Inorder to keep zjquery light, it only has stubs for the most commonly
+ faster! In order to keep zjquery light, it only has stubs for the most commonly
used functions of jQuery. This means that it is possible that you may need to
stub out additional functions manually in the relevant test module.
diff --git a/frontend_tests/puppeteer_lib/common.ts b/frontend_tests/puppeteer_lib/common.ts
index 8f73370a248..ba7eb8d554a 100644
--- a/frontend_tests/puppeteer_lib/common.ts
+++ b/frontend_tests/puppeteer_lib/common.ts
@@ -409,7 +409,7 @@ class CommonUtils {
}
/**
- * This method returns a array, which is formmated as:
+ * This method returns a array, which is formatted as:
* [
* ['stream > topic', ['message 1', 'message 2']],
* ['You and Cordelia, Lear's daughter', ['message 1', 'message 2']]
diff --git a/frontend_tests/puppeteer_tests/compose.ts b/frontend_tests/puppeteer_tests/compose.ts
index 45043402364..2bf6aa2d983 100644
--- a/frontend_tests/puppeteer_tests/compose.ts
+++ b/frontend_tests/puppeteer_tests/compose.ts
@@ -164,7 +164,7 @@ async function test_markdown_preview_buttons_visibility(page: Page): Promise<voi
await page.waitForSelector(markdown_preview_button, {visible: true});
await page.waitForSelector(markdown_preview_hide_button, {hidden: true});
- // verify if markdowm preview button works.
+ // verify if Markdown preview button works.
await page.click(markdown_preview_button);
await page.waitForSelector(markdown_preview_button, {hidden: true});
await page.waitForSelector(markdown_preview_hide_button, {visible: true});
diff --git a/frontend_tests/puppeteer_tests/drafts.ts b/frontend_tests/puppeteer_tests/drafts.ts
index 24a6f2cd086..4699df2cfc7 100644
--- a/frontend_tests/puppeteer_tests/drafts.ts
+++ b/frontend_tests/puppeteer_tests/drafts.ts
@@ -4,7 +4,7 @@ import type {Page} from "puppeteer";
import common from "../puppeteer_lib/common";
-async function wait_for_drafts_to_dissapear(page: Page): Promise<void> {
+async function wait_for_drafts_to_disappear(page: Page): Promise<void> {
await page.waitForFunction(
() => $("#draft_overlay").length === 0 || $("#draft_overlay").css("opacity") === "0",
);
@@ -32,7 +32,7 @@ async function test_empty_drafts(page: Page): Promise<void> {
assert.strictEqual(await common.get_text_from_selector(page, ".drafts-list"), "No drafts.");
await page.click(`${drafts_overlay} .exit`);
- await wait_for_drafts_to_dissapear(page);
+ await wait_for_drafts_to_disappear(page);
}
async function create_stream_message_draft(page: Page): Promise<void> {
@@ -117,7 +117,7 @@ async function test_previously_created_drafts_rendered(page: Page): Promise<void
async function test_restore_message_draft(page: Page): Promise<void> {
console.log("Restoring stream message draft");
await page.click("#drafts_table .message_row:not(.private-message) .restore-draft");
- await wait_for_drafts_to_dissapear(page);
+ await wait_for_drafts_to_disappear(page);
await page.waitForSelector("#stream-message", {visible: true});
await page.waitForSelector("#preview_message_area", {hidden: true});
await common.check_form_contents(page, "form#send_message_form", {
@@ -172,7 +172,7 @@ async function test_edited_draft_message(page: Page): Promise<void> {
async function test_restore_private_message_draft(page: Page): Promise<void> {
console.log("Restoring private message draft.");
await page.click("#drafts_table .message_row.private-message .restore-draft");
- await wait_for_drafts_to_dissapear(page);
+ await wait_for_drafts_to_disappear(page);
await page.waitForSelector("#private-message", {visible: true});
await common.check_form_contents(page, "form#send_message_form", {
content: "Test private message.",
@@ -198,7 +198,7 @@ async function test_delete_draft(page: Page): Promise<void> {
assert.strictEqual(drafts_count, 1, "Draft not deleted.");
await page.waitForSelector("#drafts_table .message_row.private-message", {hidden: true});
await page.click(`${drafts_overlay} .exit`);
- await wait_for_drafts_to_dissapear(page);
+ await wait_for_drafts_to_disappear(page);
await page.click("body");
}
diff --git a/frontend_tests/puppeteer_tests/message-basics.ts b/frontend_tests/puppeteer_tests/message-basics.ts
index 875fa7e4475..3b99d330fe8 100644
--- a/frontend_tests/puppeteer_tests/message-basics.ts
+++ b/frontend_tests/puppeteer_tests/message-basics.ts
@@ -338,7 +338,7 @@ async function test_stream_search_filters_stream_list(page: Page): Promise<void>
await page.click(".stream-list-filter");
await page.waitForSelector("#stream_filters .highlighted_stream", {visible: true});
- // First stream in list gets highlihted on clicking search.
+ // First stream in list gets highlighted on clicking search.
await page.waitForSelector((await get_stream_li(page, "core team")) + ".highlighted_stream", {
visible: true,
});
diff --git a/frontend_tests/puppeteer_tests/realm-creation.ts b/frontend_tests/puppeteer_tests/realm-creation.ts
index 75c0a33c5d0..21a4eb48fa9 100644
--- a/frontend_tests/puppeteer_tests/realm-creation.ts
+++ b/frontend_tests/puppeteer_tests/realm-creation.ts
@@ -20,7 +20,7 @@ async function realm_creation_tests(page: Page): Promise<void> {
page.$eval("#send_confirm", (form) => (form as HTMLFormElement).submit()),
]);
- // Make sure onfirmation email is sent.
+ // Make sure confirmation email is sent.
assert.ok(page.url().includes("/accounts/new/send_confirm/" + email));
// Special endpoint enabled only during tests for extracting confirmation key
diff --git a/frontend_tests/puppeteer_tests/settings.ts b/frontend_tests/puppeteer_tests/settings.ts
index b35776276a5..1a1c049a693 100644
--- a/frontend_tests/puppeteer_tests/settings.ts
+++ b/frontend_tests/puppeteer_tests/settings.ts
@@ -118,7 +118,7 @@ async function test_webhook_bot_creation(page: Page): Promise<void> {
assert.match(
zuliprc_decoded_url,
outgoing_webhook_zuliprc_regex,
- "Incorrect outgoing webhook bot zulirc format",
+ "Incorrect outgoing webhook bot zuliprc format",
);
}
diff --git a/frontend_tests/zjsunit/markdown_assert.js b/frontend_tests/zjsunit/markdown_assert.js
index 445daa225e8..7df585a13f7 100644
--- a/frontend_tests/zjsunit/markdown_assert.js
+++ b/frontend_tests/zjsunit/markdown_assert.js
@@ -162,7 +162,7 @@ class MarkdownComparer {
message:
message +
[
- "actual and expected output produce semantially identical HTML",
+ "actual and expected output produce semantically identical HTML",
actual,
"==",
expected,
diff --git a/requirements/dev.in b/requirements/dev.in
index 4c29e7b0ed6..6848c2d76f7 100644
--- a/requirements/dev.in
+++ b/requirements/dev.in
@@ -47,7 +47,7 @@ tblib
# For linting Git commit messages
gitlint-core
-# Needed for visualising cprofile reports
+# Needed for visualising cProfile reports
snakeviz
# Needed for creating DigitalOcean droplets
diff --git a/scripts/setup/inline_email_css.py b/scripts/setup/inline_email_css.py
index 0dd5b89798c..927158284e7 100755
--- a/scripts/setup/inline_email_css.py
+++ b/scripts/setup/inline_email_css.py
@@ -55,7 +55,7 @@ def inline_template(template_source_name: str) -> None:
# adding html, head, and body tags if they aren't there.
# While this is correct for the email_base_default template,
# it is wrong for the other templates that extend this
- # template, since we'll end up with 2 copipes of those tags.
+ # template, since we'll end up with 2 copies of those tags.
# Thus, we strip this stuff out if the template extends
# another template.
if template_name not in ["email_base_default", "email_base_marketing", "macros"]:
diff --git a/static/js/channel.js b/static/js/channel.js
index 11ace4eb4df..69a325522f7 100644
--- a/static/js/channel.js
+++ b/static/js/channel.js
@@ -78,7 +78,7 @@ function call(args, idempotent) {
}
if (page_params.is_spectator) {
- // In theory, the specator implementation should be
+ // In theory, the spectator implementation should be
// designed to prevent accessing widgets that would
// make network requests not available to spectators.
//
diff --git a/static/js/compose.js b/static/js/compose.js
index 8a264b46e0c..8791508a4d7 100644
--- a/static/js/compose.js
+++ b/static/js/compose.js
@@ -647,7 +647,7 @@ export function initialize() {
on_timestamp_selection,
new Date(),
{
- // place the time picker above the icon and centerize it horizontally
+ // place the time picker above the icon and center it horizontally
position: "above center",
},
);
diff --git a/static/js/compose_closed_ui.js b/static/js/compose_closed_ui.js
index 02c295f8f9a..8a3584cabd7 100644
--- a/static/js/compose_closed_ui.js
+++ b/static/js/compose_closed_ui.js
@@ -114,7 +114,7 @@ export function initialize() {
update_reply_recipient_label();
});
- // Click handlers for buttons in the compose compose box.
+ // Click handlers for buttons in the compose box.
$("body").on("click", ".compose_stream_button", () => {
compose_actions.start("stream", {trigger: "new topic button"});
});
diff --git a/static/js/compose_ui.js b/static/js/compose_ui.js
index 4c4234b2177..e2f7e14317f 100644
--- a/static/js/compose_ui.js
+++ b/static/js/compose_ui.js
@@ -162,7 +162,7 @@ export function make_compose_box_full_size() {
set_full_size(true);
// The autosize should be destroyed for the full size compose
- // box else it will interfare and shrink its size accordingly.
+ // box else it will interfere and shrink its size accordingly.
autosize.destroy($("#compose-textarea"));
$("#compose").addClass("compose-fullscreen");
@@ -195,7 +195,7 @@ export function make_compose_box_original_size() {
export function handle_keydown(event, textarea) {
// The event.key property will have uppercase letter if
// the "Shift + <key>" combo was used or the Caps Lock
- // key was on. We turn to key to lowercase so the keybindings
+ // key was on. We turn to key to lowercase so the key bindings
// work regardless of whether Caps Lock was on or not.
const key = event.key.toLowerCase();
let type;
diff --git a/static/js/composebox_typeahead.js b/static/js/composebox_typeahead.js
index a6993c3f0ab..8cfb668ca60 100644
--- a/static/js/composebox_typeahead.js
+++ b/static/js/composebox_typeahead.js
@@ -34,7 +34,7 @@ import {user_settings} from "./user_settings";
// And your input to them is rendered as though it were HTML by
// the default highlighter.
//
-// So if you are not using trusted input, you MUST use the a
+// So if you are not using trusted input, you MUST use a
// highlighter that escapes (i.e. one that calls
// typeahead_helper.highlight_with_escaping).
diff --git a/static/js/echo.js b/static/js/echo.js
index d43b8deaa43..fa093319379 100644
--- a/static/js/echo.js
+++ b/static/js/echo.js
@@ -263,7 +263,7 @@ export function try_deliver_locally(message_request) {
export function edit_locally(message, request) {
// Responsible for doing the rendering work of locally editing the
- // content ofa message. This is used in several code paths:
+ // content of a message. This is used in several code paths:
// * Editing a message where a message was locally echoed but
// it got an error back from the server
// * Locally echoing any content-only edits to fully sent messages
diff --git a/static/js/feedback_widget.js b/static/js/feedback_widget.js
index 7e85763bfb7..be7e548c09b 100644
--- a/static/js/feedback_widget.js
+++ b/static/js/feedback_widget.js
@@ -17,7 +17,7 @@ This code lets you show something like this:
And then you configure the undo behavior, and
everything else is controlled by the widget.
-Codewise it's a singleton widget that controls the DOM inside
+Code-wise it's a singleton widget that controls the DOM inside
#feedback_container, which gets served up by server.
*/
diff --git a/static/js/fetch_status.js b/static/js/fetch_status.js
index 003605ac3e2..4a7593b5135 100644
--- a/static/js/fetch_status.js
+++ b/static/js/fetch_status.js
@@ -9,7 +9,7 @@ function max_id_for_messages(messages) {
}
export class FetchStatus {
- // The FetchStatus object tracks tracks the state of a
+ // The FetchStatus object tracks the state of a
// message_list_data object, whether rendered in the DOM or not,
// and is the source of truth for whether the message_list_data
// object has the complete history of the view or whether more
@@ -82,7 +82,7 @@ export class FetchStatus {
// When a new message arrives matching the current view
// and found_newest is false, we cannot add the message to
// the view in-order without creating invalid output
- // (where two messages are displaye adjacent but might be
+ // (where two messages are display adjacent but might be
// weeks and hundreds of messages apart in actuality).
//
// So we have to discard those messages. Usually, this is
diff --git a/static/js/i18n.ts b/static/js/i18n.ts
index 01e6a5c25e5..9b6d08c7357 100644
--- a/static/js/i18n.ts
+++ b/static/js/i18n.ts
@@ -97,7 +97,7 @@ export function get_language_list_columns(default_language: string): LanguageLis
const seconds = _.range(firsts_end, language_len);
const longest_zip: [number, number][] = [];
- // Create a zip (itertool.zip_longest in python)
+ // Create a zip (itertools.zip_longest in python)
for (const value of firsts) {
longest_zip.push([value, seconds[value]]);
}
diff --git a/static/js/input_pill.js b/static/js/input_pill.js
index 5e5aef0d96a..f3c18f589ca 100644
--- a/static/js/input_pill.js
+++ b/static/js/input_pill.js
@@ -141,7 +141,7 @@ export function create(opts) {
return true;
},
- // this searches given a particlar pill ID for it, removes the node
+ // this searches given a particular pill ID for it, removes the node
// from the DOM, removes it from the array and returns it.
// this would generally be used for DOM-provoked actions, such as a user
// clicking on a pill to remove it.
@@ -200,7 +200,7 @@ export function create(opts) {
// of pills for the user to fix.
const drafts = pills.filter(
(pill) =>
- // if this returns `false`, it erroed and we should push it to
+ // if this returns `false`, it errored and we should push it to
// the draft pills.
funcs.appendPill(pill) === false,
);
diff --git a/static/js/lightbox.js b/static/js/lightbox.js
index 04496efcc6c..92aa53c3337 100644
--- a/static/js/lightbox.js
+++ b/static/js/lightbox.js
@@ -43,7 +43,7 @@ export class PanZoomControl {
}, 0);
});
- // keybinds
+ // key bindings
document.addEventListener("keydown", (e) => {
if (!overlays.lightbox_open()) {
return;
diff --git a/static/js/markdown.js b/static/js/markdown.js
index 67a57a66ead..f51b90f8b67 100644
--- a/static/js/markdown.js
+++ b/static/js/markdown.js
@@ -446,7 +446,7 @@ export function initialize(helper_config) {
return translate_emoticons_to_names(src);
}
- // Disable lheadings
+ // Disable headings
// We only keep the # Heading format.
disable_markdown_regex(marked.Lexer.rules.tables, "lheading");
diff --git a/static/js/message_fetch.js b/static/js/message_fetch.js
index 849533e50d2..c9e536dff07 100644
--- a/static/js/message_fetch.js
+++ b/static/js/message_fetch.js
@@ -491,7 +491,7 @@ export function initialize(home_view_loaded) {
// (Users will see a weird artifact where Recent topics has a gap
// between E.g. 6 days ago and 37 days ago while the catchup
// process runs, so this strategy still results in problematic
- // visual artifacts shortly after page load; just more forgiveable
+ // visual artifacts shortly after page load; just more forgivable
// ones).
//
// This MessageList is defined similarly to home_message_list,
diff --git a/static/js/message_list_view.js b/static/js/message_list_view.js
index 91a132acc91..eca8b7bef92 100644
--- a/static/js/message_list_view.js
+++ b/static/js/message_list_view.js
@@ -660,7 +660,7 @@ export class MessageListView {
// The messages we are being asked to render are shared with between
// all messages lists. To prevent having both list views overwriting
- // each others data we will make a new message object to add data to
+ // each others' data we will make a new message object to add data to
// for rendering.
const message_containers = messages.map((message) => {
if (message.starred) {
@@ -723,7 +723,7 @@ export class MessageListView {
this._post_process(dom_messages);
// The date row will be included in the message groups or will be
- // added in a rerenderd in the group below
+ // added in a rerendered in the group below
table.find(".recipient_row").first().prev(".date_row").remove();
table.prepend(rendered_groups);
condense.condense_and_collapse(dom_messages);
@@ -932,7 +932,7 @@ export class MessageListView {
// background and might be having some functionality
// throttled by modern Chrome's aggressive power-saving
// features.
- blueslip.log("Suppressing scrolldown due to inactivity");
+ blueslip.log("Suppressing scroll down due to inactivity");
return false;
}
diff --git a/static/js/narrow.js b/static/js/narrow.js
index 3f83268e673..6f4ad4fa6e0 100644
--- a/static/js/narrow.js
+++ b/static/js/narrow.js
@@ -162,7 +162,7 @@ export function reset_ui_state() {
}
export function activate(raw_operators, opts) {
- /* Main entrypoint for switching to a new view / message list.
+ /* Main entry point for switching to a new view / message list.
Note that for historical reasons related to the current
client-side caching structure, the "All messages"/message_lists.home
view is reached via `narrow.deactivate()`.
diff --git a/static/js/narrow_state.js b/static/js/narrow_state.js
index fbd3d70f38b..d6739991974 100644
--- a/static/js/narrow_state.js
+++ b/static/js/narrow_state.js
@@ -175,7 +175,7 @@ export function get_first_unread_info() {
if (!current_filter.can_apply_locally()) {
// For things like search queries, where the server has info
- // that the client isn't privvy to, we need to wait for the
+ // that the client isn't privy to, we need to wait for the
// server to give us a definitive list of messages before
// deciding where we'll move the selection.
return {
diff --git a/static/js/popover_menus.js b/static/js/popover_menus.js
index f1ba9e4e2db..c3977020cfa 100644
--- a/static/js/popover_menus.js
+++ b/static/js/popover_menus.js
@@ -109,7 +109,7 @@ export function initialize() {
// We need to hide instance manually for popover due to
// `$("body").on("click"...` method not being triggered for
- // the elements when when we do:
+ // the elements when we do:
// `$(instance.popper).one("click", instance.hide); in onShow.
// Cannot reproduce it on codepen -
// https://codepen.io/amanagr/pen/jOLoKVg
diff --git a/static/js/popovers.js b/static/js/popovers.js
index a8b21cab1b3..9ef69dba4df 100644
--- a/static/js/popovers.js
+++ b/static/js/popovers.js
@@ -714,7 +714,7 @@ export function user_sidebar_popped() {
export function hide_user_sidebar_popover() {
if (user_sidebar_popped()) {
// this hide_* method looks different from all the others since
- // the presence list may be redrawn. Due to funkiness with jquery's .data()
+ // the presence list may be redrawn. Due to funkiness with jQuery's .data()
// this would confuse $.popover("destroy"), which looks at the .data() attached
// to a certain element. We thus save off the .data("popover") in the
// show_user_sidebar_popover and inject it here before calling destroy.
@@ -1244,7 +1244,7 @@ export function register_click_handlers() {
.fadeOut(300);
setTimeout(() => {
- // The Cliboard library works by focusing to a hidden textarea.
+ // The Clipboard library works by focusing to a hidden textarea.
// We unfocus this so keyboard shortcuts, etc., will work again.
$(":focus").trigger("blur");
}, 0);
diff --git a/static/js/reload.js b/static/js/reload.js
index c0a67448350..df7d1b1784e 100644
--- a/static/js/reload.js
+++ b/static/js/reload.js
@@ -27,7 +27,7 @@ function preserve_state(send_after_reload, save_pointer, save_narrow, save_compo
// no secure way to pass that state in a signed fashion to the
// next instance of the browser client).
//
- // So we jure return here and let the reload proceed without
+ // So we just return here and let the reload proceed without
// having preserved state. We keep the hash the same so we'll
// at least save their narrow state.
blueslip.log("Can't preserve state; no local storage.");
diff --git a/static/js/scroll_bar.js b/static/js/scroll_bar.js
index f21741d40bb..18b4bbeaff4 100644
--- a/static/js/scroll_bar.js
+++ b/static/js/scroll_bar.js
@@ -21,7 +21,7 @@ function getScrollbarWidth() {
// force scrollbars
outer.style.overflow = "scroll";
- // add innerdiv
+ // add inner div
const inner = document.createElement("div");
inner.style.width = "100%";
outer.append(inner);
diff --git a/static/js/settings_ui.js b/static/js/settings_ui.js
index a23668ced61..8523906479f 100644
--- a/static/js/settings_ui.js
+++ b/static/js/settings_ui.js
@@ -67,7 +67,7 @@ export function do_settings_change(
}
// This function is used to disable sub-setting when main setting is checked or unchecked
-// or two settings are inter-dependent on their values values.
+// or two settings are inter-dependent on their values.
// * is_checked is boolean, shows if the main setting is checked or not.
// * sub_setting_id is sub setting or setting which depend on main setting,
// string id of setting.
diff --git a/static/js/settings_users.js b/static/js/settings_users.js
index 47320e3cb83..6ae4fdb339e 100644
--- a/static/js/settings_users.js
+++ b/static/js/settings_users.js
@@ -399,7 +399,7 @@ function get_human_profile_data(fields_user_pills) {
*/
const new_profile_data = [];
$("#edit-user-form .custom_user_field_value").each(function () {
- // Remove duplicate datepicker input element generated flatpicker library
+ // Remove duplicate datepicker input element generated flatpickr library
if (!$(this).hasClass("form-control")) {
new_profile_data.push({
id: Number.parseInt(
diff --git a/static/js/spectators.js b/static/js/spectators.js
index d3b6511f625..6d5404c7720 100644
--- a/static/js/spectators.js
+++ b/static/js/spectators.js
@@ -1,5 +1,5 @@
// Module for displaying the modal asking spectators to login when
-// attempting to do things that are not possible as a specatator (like
+// attempting to do things that are not possible as a spectator (like
// add an emoji reaction, star a message, etc.). While in many cases,
// we will prefer to hide menu options that don't make sense for
// spectators, this modal is useful for everything that doesn't make
diff --git a/static/js/stream_list.js b/static/js/stream_list.js
index 38fcc28043a..91147e73bf1 100644
--- a/static/js/stream_list.js
+++ b/static/js/stream_list.js
@@ -29,7 +29,7 @@ export let stream_cursor;
let has_scrolled = false;
export function update_count_in_dom(stream_li, count) {
- // The subsription_block properly excludes the topic list,
+ // The subscription_block properly excludes the topic list,
// and it also has sensitive margins related to whether the
// count is there or not.
const subscription_block = stream_li.find(".subscription_block");
diff --git a/static/js/stream_settings_ui.js b/static/js/stream_settings_ui.js
index c61c7be25f7..7fc11b23928 100644
--- a/static/js/stream_settings_ui.js
+++ b/static/js/stream_settings_ui.js
@@ -253,7 +253,7 @@ export function add_sub_to_table(sub) {
// If a stream is already listed/added in subscription modal,
// display stream in `Subscribed` tab and return.
// This can happen in some corner cases (which might
- // be backend bugs) where a realm adminsitrator is subscribed
+ // be backend bugs) where a realm administrator is subscribed
// to a private stream, in which case they might get two
// stream-create events.
stream_ui_updates.update_stream_row_in_settings_tab(sub);
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index b2a1b3a6084..89ba3738c4a 100644
--- a/static/js/tippyjs.js
+++ b/static/js/tippyjs.js
@@ -154,7 +154,7 @@ export function initialize() {
$("body").on("blur", ".message_control_button", (e) => {
// Remove tooltip when user is trying to tab through all the icons.
// If user tabs slowly, tooltips are displayed otherwise they are
- // distroyed before they can be displayed.
+ // destroyed before they can be displayed.
e.currentTarget._tippy.destroy();
});
diff --git a/static/js/todo_widget.js b/static/js/todo_widget.js
index 442fff50faa..b8d7480309d 100644
--- a/static/js/todo_widget.js
+++ b/static/js/todo_widget.js
@@ -203,7 +203,7 @@ export function activate(opts) {
e.stopPropagation();
if (page_params.is_spectator) {
- // Logically, spectators should not be able totoggle
+ // Logically, spectators should not be able to toggle
// TODO checkboxes. However, the browser changes the
// checkbox's state before calling handlers like this,
// so we need to just toggle the checkbox back to its
diff --git a/static/js/typeahead_helper.js b/static/js/typeahead_helper.js
index 7331ba2625b..3c0869705bc 100644
--- a/static/js/typeahead_helper.js
+++ b/static/js/typeahead_helper.js
@@ -317,7 +317,7 @@ export function sort_recipients({
The following optimization is important for large realms.
If we know we're only showing 5 suggestions, and we
get 5 matches from `best_users`, then we want to avoid
- calling the expensives sorts for `ok_users` and `worst_users`,
+ calling the expensive sorts for `ok_users` and `worst_users`,
since they just get dropped.
*/
diff --git a/static/styles/rendered_markdown.css b/static/styles/rendered_markdown.css
index 7cd3d749b38..2d074af7f5f 100644
--- a/static/styles/rendered_markdown.css
+++ b/static/styles/rendered_markdown.css
@@ -477,7 +477,7 @@
}
}
- /* Style copy-to-clipboard button inside codeblocks */
+ /* Style copy-to-clipboard button inside code blocks */
.copy_codeblock {
visibility: hidden;
/* Having absolute positioning here ensures that the element
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 29672a90ec5..5c12f03ee9d 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -1518,7 +1518,7 @@ input[type="checkbox"] {
.content-wrapper {
position: absolute;
left: 251px;
- /* the width of the settings sidbar this is right of is 250px + 1px border. */
+ /* the width of the settings sidebar this is right of is 250px + 1px border. */
width: calc(100% - 250px - 1px);
height: 100%;
overflow: hidden;
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index f3c6e5d1410..6a29751000c 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -470,7 +470,7 @@ li,
padding: 6px;
display: block;
/* The below two avoids the padded element from displaying
- it's own border and background color */
+ its own border and background color */
border: none;
background-clip: content-box;
/* The z-index here ensures that the copy-message
@@ -1188,7 +1188,7 @@ td.pointer {
border-left-color: hsl(0, 0%, 27%);
}
- /* Base color backgrounds for messageboxes,
+ /* Base color backgrounds for message boxes,
private messages, mentions, and unread messages */
.message-header-contents {
diff --git a/static/templates/settings/organization_permissions_admin.hbs b/static/templates/settings/organization_permissions_admin.hbs
index 3b23cc3683b..5f3d9bd4925 100644
--- a/static/templates/settings/organization_permissions_admin.hbs
+++ b/static/templates/settings/organization_permissions_admin.hbs
@@ -244,7 +244,7 @@
<div class="input-group">
<label for="realm_add_custom_emoji_policy" class="dropdown-title">{{t "Who can add custom emoji" }}</label>
- <select name="realm_add_cutsom_emoji_policy" class="setting-widget prop-element" id="id_realm_add_custom_emoji_policy" data-setting-widget-type="number">
+ <select name="realm_add_custom_emoji_policy" class="setting-widget prop-element" id="id_realm_add_custom_emoji_policy" data-setting-widget-type="number">
{{> dropdown_options_widget option_values=common_policy_values}}
</select>
</div>
diff --git a/static/third/bootstrap-typeahead/typeahead.js b/static/third/bootstrap-typeahead/typeahead.js
index dbb3a15a1f4..f1d73bf64f8 100644
--- a/static/third/bootstrap-typeahead/typeahead.js
+++ b/static/third/bootstrap-typeahead/typeahead.js
@@ -34,7 +34,7 @@
*
* This adds support for completing a typeahead on custom keyup input. By
* default, we only support Tab and Enter to complete a typeahead, but we
- * have usecases where we want to complete using custom characters like: >.
+ * have use cases where we want to complete using custom characters like: >.
*
* If `this.trigger_selection` returns true, we complete the typeahead and
* pass the keyup event to the updater.
diff --git a/templates/corporate/zephyr-mirror.html b/templates/corporate/zephyr-mirror.html
index 33dc955ab90..24588503732 100644
--- a/templates/corporate/zephyr-mirror.html
+++ b/templates/corporate/zephyr-mirror.html
@@ -83,7 +83,7 @@
</li>
<li>The first time, you'll need to type <code>Ctrl-A c</code> to switch to a new terminal in your screen session.</li>
<li><code>kinit -l7d && aklog</code></li>
- <li>(Type type your password to renew your Kerberos tickets).</li>
+ <li>(Type your password to renew your Kerberos tickets).</li>
</ol>
<p>
diff --git a/templates/zerver/api/changelog.md b/templates/zerver/api/changelog.md
index 0362df9b4df..4e9a4b9d904 100644
--- a/templates/zerver/api/changelog.md
+++ b/templates/zerver/api/changelog.md
@@ -100,7 +100,7 @@ format used by the Zulip server that they are interacting with.
* [`PATCH /realm`]: Added `string_id` parameter for changing an
organization's subdomain. Currently, this is only allowed for
- changing changing a demo organization to a normal one.
+ changing a demo organization to a normal one.
**Feature level 103**
diff --git a/templates/zerver/api/incoming-webhooks-overview.md b/templates/zerver/api/incoming-webhooks-overview.md
index 02bb5771594..e9b027962d0 100644
--- a/templates/zerver/api/incoming-webhooks-overview.md
+++ b/templates/zerver/api/incoming-webhooks-overview.md
@@ -89,13 +89,13 @@ below are for a webhook named `MyWebHook`.
* `zerver/webhooks/mywebhook/fixtures/messagetype.json`: Sample json payload data
used by tests. Add one fixture file per type of message supported by your
integration.
-* `zerver/webhooks/mywebhook/tests.py`: Tests for your webbook.
+* `zerver/webhooks/mywebhook/tests.py`: Tests for your webhook.
* `zerver/webhooks/mywebhook/doc.md`: End-user documentation explaining
how to add the integration.
* `static/images/integrations/logos/mywebhook.svg`: A square logo for the
platform/server/product you are integrating. Used on the documentation
pages as well as the sender's avatar for messages sent by the integration.
-* `static/images/integrations/mywebbook/001.svg`: A screenshot of a message
+* `static/images/integrations/mywebhook/001.svg`: A screenshot of a message
sent by the integration, used on the documentation page. This can be
generated by running `tools/generate-integration-docs-screenshot --integration mywebhook`.
* `static/images/integrations/bot_avatars/mywebhook.png`: A square logo for the
diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html
index a486798aa4a..61ade35d7bc 100644
--- a/templates/zerver/app/index.html
+++ b/templates/zerver/app/index.html
@@ -109,7 +109,7 @@
<span id="normal-zephyr-mirror-error-text">
We recommend that
you <a class="webathena_login">give Zulip the ability to mirror the messages for you via
- WebAthena</a>. If you'd prefer, you can instead
+ Webathena</a>. If you'd prefer, you can instead
<a href="/zephyr-mirror" target="_blank" rel="noopener noreferrer">run the
Zephyr mirror script yourself</a> in a screen
session.
diff --git a/templates/zerver/emails/email.css b/templates/zerver/emails/email.css
index 00fec673f7e..3cd0ed6e403 100644
--- a/templates/zerver/emails/email.css
+++ b/templates/zerver/emails/email.css
@@ -390,7 +390,7 @@ a.button:hover {
line-height: 100%;
}
- /* iOS converts adreses in emails to links automatically */
+ /* iOS converts addresses in emails to links automatically */
.apple-link a {
color: inherit !important;
font-family: inherit !important;
diff --git a/templates/zerver/for/tum-case-study.md b/templates/zerver/for/tum-case-study.md
index f2ab5bf4d8d..4c92cd753c0 100644
--- a/templates/zerver/for/tum-case-study.md
+++ b/templates/zerver/for/tum-case-study.md
@@ -15,7 +15,7 @@ communication with students, and among the 30-50 person course staff.
[Tobias Lasser](https://ciip.in.tum.de/people/lasser.html), lecturer
at the TUM Department of Informatics, set out to teach an introductory
-algorithms class with 1400 students in April 2020, as the Covid-19
+algorithms class with 1400 students in April 2020, as the COVID-19
pandemic was sweeping across Europe. With instruction moving online,
he knew that finding an effective communication platform was more
important than ever.
diff --git a/templates/zerver/for/ucsd-case-study.md b/templates/zerver/for/ucsd-case-study.md
index 59c384ea282..1626a77b59a 100644
--- a/templates/zerver/for/ucsd-case-study.md
+++ b/templates/zerver/for/ucsd-case-study.md
@@ -6,7 +6,7 @@ top universities worldwide. The UCSD math department offers
prestigious graduate and undergraduate programs, with course topics
ranging from foundational material to cutting-edge research.
-In response to the covid pandemic, UCSD instruction moved online early
+In response to the COVID-19 pandemic, UCSD instruction moved online early
in 2020. As instructors scrambled to figure out online education,
Kiran Kedlaya, Professor of Mathematics at UCSD, gave himself a bigger
challenge: “Seeing the unique opportunity, I decided to open my
diff --git a/templates/zerver/help/change-a-users-role.md b/templates/zerver/help/change-a-users-role.md
index 78b461923e2..7032fa4302a 100644
--- a/templates/zerver/help/change-a-users-role.md
+++ b/templates/zerver/help/change-a-users-role.md
@@ -10,7 +10,7 @@ An organization owner can change the role of any user. An
organization administrator can change the role of most users, but
cannot create or demote an organization owner.
-You can can revoke your own owner or administrative privileges if
+You can revoke your own owner or administrative privileges if
there is at least one other owner in the organization (consider
promoting a new owner or [deactivating the
organization](/help/deactivate-your-organization) instead).
diff --git a/templates/zerver/help/code-blocks.md b/templates/zerver/help/code-blocks.md
index 6a0f9446406..2dd42b62687 100644
--- a/templates/zerver/help/code-blocks.md
+++ b/templates/zerver/help/code-blocks.md
@@ -107,7 +107,7 @@ the user will get to choose which playground to open the code in.
* The **Language** field is the human-readable Pygments language name for that
programming language. The language tag for a code block is internally mapped
-to these human-readable Pygments names. E.g: `py3` and `py` are mapped to
+to these human-readable Pygments names; e.g., `py3` and `py` are mapped to
`Python`. One can use the typeahead (which appears when you type something
or just click on the language field) to lookup the Pygments name.
diff --git a/templates/zerver/help/configure-default-view.md b/templates/zerver/help/configure-default-view.md
index 79c37e6f8fe..2e7867eba6b 100644
--- a/templates/zerver/help/configure-default-view.md
+++ b/templates/zerver/help/configure-default-view.md
@@ -47,7 +47,7 @@ Zulip has a number of [keyboard shortcuts](/help/keyboard-shortcuts)
designed to enhance the user experience in the app.
By default, the `Esc` key shortcut will ultimately navigate to your
-default view. You can disable this keybinding if you would prefer.
+default view. You can disable this key binding if you would prefer.
This will not disable other `Esc` key shortcuts used in Zulip,
and will not affect the behavior of the `Ctrl+[` shortcut.
diff --git a/templates/zerver/help/emoji-and-emoticons.md b/templates/zerver/help/emoji-and-emoticons.md
index 6cb59da83ff..9c4a3f3b8de 100644
--- a/templates/zerver/help/emoji-and-emoticons.md
+++ b/templates/zerver/help/emoji-and-emoticons.md
@@ -58,7 +58,7 @@ Copying and pasting emoji from other sites generally works.
## Change your emoji set
Your emoji set determines how you see emoji. It has no effect on the emoji
-you send. Zulip emoji are compatible with screenreaders and other accessibility tools.
+you send. Zulip emoji are compatible with screen readers and other accessibility tools.
{start_tabs}
diff --git a/templates/zerver/help/invite-new-users.md b/templates/zerver/help/invite-new-users.md
index 18d29a21fa6..1a8c6a62d2f 100644
--- a/templates/zerver/help/invite-new-users.md
+++ b/templates/zerver/help/invite-new-users.md
@@ -149,7 +149,7 @@ users to other sets of roles:
## Manage pending invitations
Organization owners can revoke or resend any invitation or reusable
-invitation link. Organization administrators can can do the same
+invitation link. Organization administrators can do the same
except for invitations for the organization owners role.
{start_tabs}
diff --git a/templates/zerver/help/restrict-name-and-email-changes.md b/templates/zerver/help/restrict-name-and-email-changes.md
index 1490f9bd1c6..b970f6bcd25 100644
--- a/templates/zerver/help/restrict-name-and-email-changes.md
+++ b/templates/zerver/help/restrict-name-and-email-changes.md
@@ -26,7 +26,7 @@ source, and synced into Zulip via the [Zulip API](/api) or another method.
By default, any user can
[change their email address](/help/change-your-email-address). However, you
can instead prevent all email changes. This is especially useful for
-organizations that are using LDAP or a another single
+organizations that are using LDAP or another single
sign-on solution to manage user emails.
{start_tabs}
diff --git a/templates/zerver/help/share-and-upload-files.md b/templates/zerver/help/share-and-upload-files.md
index 85b9af1b497..6195e5b872c 100644
--- a/templates/zerver/help/share-and-upload-files.md
+++ b/templates/zerver/help/share-and-upload-files.md
@@ -10,7 +10,7 @@ First, [open the compose box](/help/open-the-compose-box). Then
the bottom of the compose box to find files on your computer.
Zulip will insert a link to the file, in Markdown format:
-`[link text](URL)`. You can modily the `link text` to whatever you want.
+`[link text](URL)`. You can modify the `link text` to whatever you want.
Zulip will automatically generate a **thumbnail** of the file when you send
it, if it can. You can
diff --git a/templates/zerver/help/stream-permissions.md b/templates/zerver/help/stream-permissions.md
index d5ae3575948..3aae5500ef1 100644
--- a/templates/zerver/help/stream-permissions.md
+++ b/templates/zerver/help/stream-permissions.md
@@ -1,6 +1,6 @@
# Stream privacy settings
-Streams are similar to chatrooms, IRC channels, or email lists in that they
+Streams are similar to chat rooms, IRC channels, or email lists in that they
determine who receives a message. Zulip supports a few types of streams:
* **Public** (**#**): Members can join and view the complete message history.
diff --git a/templates/zerver/help/view-someones-profile.md b/templates/zerver/help/view-someones-profile.md
index 6d9723df666..eff1bae4d1c 100644
--- a/templates/zerver/help/view-someones-profile.md
+++ b/templates/zerver/help/view-someones-profile.md
@@ -4,7 +4,7 @@ A user's profile includes their name, email, role, the date they joined,
when they were last active, and any
[custom profile fields](/help/add-custom-profile-fields) they've filled out.
-It also contains additional tabs showing a user's susbcribed streams
+It also contains additional tabs showing a user's subscribed streams
and user groups. Note that the information in those tabs is limited to
streams for which [you can see all subscribers](/help/stream-permissions).
diff --git a/templates/zerver/history.html b/templates/zerver/history.html
index edb03ddb5b3..998a5e8bc81 100644
--- a/templates/zerver/history.html
+++ b/templates/zerver/history.html
@@ -151,7 +151,7 @@
Kandra Labs is supported by nearly $1M
in <a href="https://seedfund.nsf.gov/">SBIR
grants</a> from the US National Science
- Foundation, and Zulip has benefitted enormously
+ Foundation, and Zulip has benefited enormously
from the 30+ developers that started working on
Zulip
via <a href="https://summerofcode.withgoogle.com/">Google
diff --git a/templates/zerver/integrations/errbot.md b/templates/zerver/integrations/errbot.md
index bc92f7b7144..1aacd590bf4 100644
--- a/templates/zerver/integrations/errbot.md
+++ b/templates/zerver/integrations/errbot.md
@@ -3,7 +3,7 @@ Run your favorite chatbot in Zulip!
0. [Install errbot](https://errbot.readthedocs.io/en/latest/user_guide/setup.html)
and follow to instructions to set up a `config.py`.
-0. Check our our [Errbot integration package for Zulip](https://github.com/zulip/errbot-backend-zulip)
+0. Check out our [Errbot integration package for Zulip](https://github.com/zulip/errbot-backend-zulip).
Clone this repository somewhere convenient.
0. Install the requirements listed in `errbot-backend-zulip/requirements.txt`.
diff --git a/tools/check-issue-labels b/tools/check-issue-labels
index 1bc12310a94..6224ba246ce 100755
--- a/tools/check-issue-labels
+++ b/tools/check-issue-labels
@@ -8,7 +8,7 @@ from typing import Any, Dict, Optional
import requests
-# Scans zulip repositary for issues that don't have any `area` labels.
+# Scans zulip repository for issues that don't have any `area` labels.
# GitHub API token is required as GitHub limits unauthenticated
# requests to 60/hour. There is a good chance that this limit is
# bypassed in consecutive attempts.
diff --git a/tools/ci/production-install b/tools/ci/production-install
index 7dbf4e36e32..0e81e4c20b5 100755
--- a/tools/ci/production-install
+++ b/tools/ci/production-install
@@ -13,7 +13,7 @@ Usage:
Options:
--test-custom-db
- This will instruct the install test to be ran with a custom database name and user.
+ This will instruct the install test to be run with a custom database name and user.
EOF
}
diff --git a/tools/droplets/create.py b/tools/droplets/create.py
index 93ad095ccc0..46c0b82c14a 100644
--- a/tools/droplets/create.py
+++ b/tools/droplets/create.py
@@ -24,7 +24,7 @@ from typing import Any, Dict, List
import digitalocean
import requests
-parser = argparse.ArgumentParser(description="Create a Zulip devopment VM DigitalOcean droplet.")
+parser = argparse.ArgumentParser(description="Create a Zulip development VM DigitalOcean droplet.")
parser.add_argument(
"username", help="GitHub username for whom you want to create a Zulip dev droplet"
)
diff --git a/tools/lib/gitlint-rules.py b/tools/lib/gitlint-rules.py
index ff187a11dfa..7739ceb2c7c 100644
--- a/tools/lib/gitlint-rules.py
+++ b/tools/lib/gitlint-rules.py
@@ -22,7 +22,7 @@ TENSE_DATA = [
(["disables", "disabling", "disabled"], "disable"),
(["displays", "displaying", "displayed"], "display"),
(["documents", "documenting", "documented"], "document"),
- (["drys", "drying", "dryed"], "dry"),
+ (["drys", "drying", "dried"], "dry"),
(["ends", "ending", "ended"], "end"),
(["enforces", "enforcing", "enforced"], "enforce"),
(["enqueues", "enqueuing", "enqueued"], "enqueue"),
diff --git a/tools/linter_lib/custom_check.py b/tools/linter_lib/custom_check.py
index bfa0140905f..b50acaf8414 100644
--- a/tools/linter_lib/custom_check.py
+++ b/tools/linter_lib/custom_check.py
@@ -582,8 +582,8 @@ html_rules: List["Rule"] = [
{
"pattern": " '}}",
"description": "Likely misplaced quoting in translation tags",
- "good_lines": ["{{t 'translateable string' }}"],
- "bad_lines": ["{{t 'translateable string '}}"],
+ "good_lines": ["{{t 'translatable string' }}"],
+ "bad_lines": ["{{t 'translatable string '}}"],
},
{
"pattern": "placeholder='[^{]",
@@ -784,7 +784,7 @@ jinja2_rules = RuleList(
{
"pattern": r'{% set entrypoint = "dev-',
"exclude": {"templates/zerver/development/"},
- "description": "Development entrypoints (dev-) must not be imported in production.",
+ "description": "Development entry points (dev-) must not be imported in production.",
},
],
)
diff --git a/tools/setup/emoji/emoji_names.py b/tools/setup/emoji/emoji_names.py
index a3e695f8a88..b1754cf2142 100644
--- a/tools/setup/emoji/emoji_names.py
+++ b/tools/setup/emoji/emoji_names.py
@@ -97,7 +97,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f630": {"canonical_name": "cold_sweat", "aliases": []},
"1f622": {"canonical_name": "cry", "aliases": []},
# stressed from https://beebom.com/emoji-meanings/. The internet generally
- # didn't seem to know what to make of the dissapointed_relieved name, and I
+ # didn't seem to know what to make of the disappointed_relieved name, and I
# got the sense it wasn't an emotion that was often used. Hence replaced it
# with exhausted.
"1f625": {"canonical_name": "exhausted", "aliases": ["disappointed_relieved", "stressed"]},
@@ -178,7 +178,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
# applause from https://emojipedia.org/clapping-hands-sign/
"1f44f": {"canonical_name": "clap", "aliases": ["applause"]},
# welcome and thank_you from
- # https://emojipedia.org/person-with-folded-hands/, namaste from indian
+ # https://emojipedia.org/person-with-folded-hands/, namaste from Indian
# culture
"1f64f": {"canonical_name": "pray", "aliases": ["welcome", "thank_you", "namaste"]},
# done_deal seems like a natural addition
@@ -889,7 +889,7 @@ EMOJI_NAME_MAPS: Dict[str, Dict[str, Any]] = {
"1f69e": {"canonical_name": "mountain_railway", "aliases": []},
# elevated_train seems like a reasonable addition
"1f69d": {"canonical_name": "monorail", "aliases": ["elevated_train"]},
- # from gemoji/Unicode. Also, don't thin we need two bullettrain's
+ # from gemoji/Unicode. Also, don't think we need two bullettrain's
"1f684": {"canonical_name": "high_speed_train", "aliases": []},
# Google, Wikipedia, etc. prefer bullet train to bullettrain
"1f685": {"canonical_name": "bullet_train", "aliases": []},
diff --git a/tools/test-api b/tools/test-api
index 8e5e268fbf0..70d1e7465af 100755
--- a/tools/test-api
+++ b/tools/test-api
@@ -29,7 +29,7 @@ assert_provisioning_status_ok(options.skip_provision_check)
with test_server_running(
skip_provision_check=options.skip_provision_check, external_host="zulipdev.com:9981"
):
- # Zerver imports should happen after `django.setup()` is run
+ # zerver imports should happen after `django.setup()` is run
# by the test_server_running decorator.
from zerver.lib.actions import (
change_user_is_active,
diff --git a/tools/tests/test_template_parser.py b/tools/tests/test_template_parser.py
index 43527976603..8ad7c3433ff 100644
--- a/tools/tests/test_template_parser.py
+++ b/tools/tests/test_template_parser.py
@@ -191,7 +191,7 @@ class ParserTest(unittest.TestCase):
# This is allowed, although strange.
my_html = """
- <a hef="/some/url">
+ <a href="/some/url">
Click here
for more info.
</a>"""
diff --git a/tools/update-prod-static b/tools/update-prod-static
index 6d7816853f5..807882d68b4 100755
--- a/tools/update-prod-static
+++ b/tools/update-prod-static
@@ -38,7 +38,7 @@ run(["./scripts/setup/inline_email_css.py"])
# Copy over static files from the zulip_bots package
run(["./tools/setup/generate_zulip_bots_static_files.py"])
-# Build pygment data
+# Build pygments data
run(["./tools/setup/build_pygments_data"])
# Build timezones data
diff --git a/zerver/data_import/slack.py b/zerver/data_import/slack.py
index 75e5ea954ae..5d6af9b8920 100755
--- a/zerver/data_import/slack.py
+++ b/zerver/data_import/slack.py
@@ -207,7 +207,7 @@ def users_to_zerver_userprofile(
"""
Returns:
1. zerver_userprofile, which is a list of user profile
- 2. avatar_list, which is list to map avatars to Zulip avatard records.json
+ 2. avatar_list, which is list to map avatars to Zulip avatar records.json
3. slack_user_id_to_zulip_user_id, which is a dictionary to map from Slack user ID to Zulip
user id
4. zerver_customprofilefield, which is a list of all custom profile fields
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index 6b90c7edf13..88bba79e1d2 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -2547,7 +2547,7 @@ def check_add_reaction(
# In this "voting for an existing reaction" case, we shouldn't
# check whether the emoji code and emoji name match, since
# it's possible that the (emoji_type, emoji_name, emoji_code)
- # triple for this existing rection xmay not pass validation
+ # triple for this existing reaction may not pass validation
# now (e.g. because it is for a realm emoji that has been
# since deactivated). We still want to allow users to add a
# vote any old reaction they see in the UI even if that is a
@@ -3078,7 +3078,7 @@ def check_update_message(
if not user_profile.realm.allow_message_editing:
raise JsonableError(_("Your organization has turned off message editing"))
- # The zerver/views/message_edit.py callpoint already strips this
+ # The zerver/views/message_edit.py call point already strips this
# via REQ_topic; so we can delete this line if we arrange a
# contract where future callers in the embedded bots system strip
# use REQ_topic as well (or otherwise are guaranteed to strip input).
@@ -5095,7 +5095,7 @@ def do_change_stream_permission(
stream.history_public_to_subscribers = True
else:
assert invite_only is not None
- # is_web_public is Falsey
+ # is_web_public is falsey
history_public_to_subscribers = get_default_value_for_history_public_to_subscribers(
stream.realm,
invite_only,
@@ -5708,7 +5708,7 @@ def do_change_user_setting(
transaction.on_commit(lambda: send_event(user_profile.realm, event, [user_profile.id]))
if setting_name in UserProfile.notification_settings_legacy:
- # This legacy event format is for backwards-compatiblity with
+ # This legacy event format is for backwards-compatibility with
# clients that don't support the new user_settings event type.
# We only send this for settings added before Feature level 89.
legacy_event = {
@@ -5722,7 +5722,7 @@ def do_change_user_setting(
)
if setting_name in UserProfile.display_settings_legacy or setting_name == "timezone":
- # This legacy event format is for backwards-compatiblity with
+ # This legacy event format is for backwards-compatibility with
# clients that don't support the new user_settings event type.
# We only send this for settings added before Feature level 89.
legacy_event = {
@@ -5918,7 +5918,7 @@ def get_default_subs(user_profile: UserProfile) -> List[Stream]:
return get_default_streams_for_realm(user_profile.realm_id)
-# returns default streams in json serializeable format
+# returns default streams in JSON serializable format
def streams_to_dicts_sorted(streams: List[Stream]) -> List[Dict[str, Any]]:
return sorted((stream.to_dict() for stream in streams), key=lambda elt: elt["name"])
@@ -6993,7 +6993,7 @@ def do_update_message(
# TODO: Guest users don't see the new moved topic
# unless breadcrumb message for new stream is
# enabled. Excluding these users from receiving this
- # event helps us avoid a error trackeback for our
+ # event helps us avoid a error traceback for our
# clients. We should figure out a way to inform the
# guest users of this new topic if sending a 'message'
# event for these messages is not an option.
diff --git a/zerver/lib/addressee.py b/zerver/lib/addressee.py
index 97f45cf455d..150dc43fec9 100644
--- a/zerver/lib/addressee.py
+++ b/zerver/lib/addressee.py
@@ -118,9 +118,9 @@ class Addressee:
else:
# This is a hack to deal with the fact that we still support
# default streams (and the None will be converted later in the
- # callpath).
+ # call path).
if sender.default_sending_stream:
- # Use the users default stream
+ # Use the user's default stream
stream_name_or_id = sender.default_sending_stream.id
else:
raise JsonableError(_("Missing stream"))
diff --git a/zerver/lib/digest.py b/zerver/lib/digest.py
index 5ba444c7d92..6c5e7c2edc1 100644
--- a/zerver/lib/digest.py
+++ b/zerver/lib/digest.py
@@ -148,7 +148,7 @@ def _enqueue_emails_for_realm(realm: Realm, cutoff: datetime.datetime) -> None:
user_ids.sort()
# We process batches of 30. We want a big enough batch
- # to amorize work, but not so big that a single item
+ # to amortize work, but not so big that a single item
# from the queue takes too long to process.
chunk_size = 30
for i in range(0, len(user_ids), chunk_size):
diff --git a/zerver/lib/display_recipient.py b/zerver/lib/display_recipient.py
index af646c1c70c..02effb6b6e2 100644
--- a/zerver/lib/display_recipient.py
+++ b/zerver/lib/display_recipient.py
@@ -114,7 +114,7 @@ def bulk_fetch_display_recipients(
)
# Now we have to create display_recipients for personal and huddle messages.
- # We do this via generic_bulk_cached_fetch, supplying apprioprate functions to it.
+ # We do this via generic_bulk_cached_fetch, supplying appropriate functions to it.
def personal_and_huddle_query_function(
recipient_ids: List[int],
diff --git a/zerver/lib/email_validation.py b/zerver/lib/email_validation.py
index d5e712501b4..ebf2afd0e79 100644
--- a/zerver/lib/email_validation.py
+++ b/zerver/lib/email_validation.py
@@ -27,7 +27,7 @@ def validate_disposable(email: str) -> None:
def get_realm_email_validator(realm: Realm) -> Callable[[str], None]:
if not realm.emails_restricted_to_domains:
- # Should we also do '+' check for non-resticted realms?
+ # Should we also do '+' check for non-restricted realms?
if realm.disallow_disposable_email_addresses:
return validate_disposable
diff --git a/zerver/lib/export.py b/zerver/lib/export.py
index aaa8e9af4cb..ef5c088ce7d 100644
--- a/zerver/lib/export.py
+++ b/zerver/lib/export.py
@@ -384,7 +384,7 @@ def write_table_data(output_file: str, data: Dict[str, Any]) -> None:
def write_records_json_file(output_dir: str, records: List[Dict[str, Any]]) -> None:
- # We want a somewhat determistic sorting order here. All of our
+ # We want a somewhat deterministic sorting order here. All of our
# versions of records.json include a "path" field in each element,
# even though there's some variation among avatars/emoji/realm_icons/uploads
# in other fields that get written.
diff --git a/zerver/lib/external_accounts.py b/zerver/lib/external_accounts.py
index 4945019c1e0..a92f9e75774 100644
--- a/zerver/lib/external_accounts.py
+++ b/zerver/lib/external_accounts.py
@@ -15,7 +15,7 @@ from zerver.lib.validator import (
# to realm admins, where realm admin only need to select
# the default field and other values(i.e. name, url) will be
# fetch from this dictionary.
-# text: Field text for admins - custom profile field in org settngs view
+# text: Field text for admins - custom profile field in org settings view
# name: Field label or name - user profile in user settings view
# hint: Field hint for realm users
# url_pattern: Field URL linkifier
diff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.py
index 918f7990372..b1589a14154 100644
--- a/zerver/lib/import_realm.py
+++ b/zerver/lib/import_realm.py
@@ -622,7 +622,7 @@ def update_model_ids(model: Any, data: TableData, related_table: TableName) -> N
table = get_db_table(model)
# Important: remapping usermessage rows is
- # not only unnessary, it's expensive and can cause
+ # not only unnecessary, it's expensive and can cause
# memory errors. We don't even use ids from ID_MAP.
assert "usermessage" not in table
diff --git a/zerver/lib/markdown/fenced_code.py b/zerver/lib/markdown/fenced_code.py
index f73083901e3..37081a184d2 100644
--- a/zerver/lib/markdown/fenced_code.py
+++ b/zerver/lib/markdown/fenced_code.py
@@ -457,7 +457,7 @@ class FencedBlockPreprocessor(Preprocessor):
self.checked_for_codehilite = True
# If config is not empty, then the codehighlite extension
- # is enabled, so we call it to highlite the code
+ # is enabled, so we call it to highlight the code
if self.codehilite_conf:
highliter = CodeHilite(
text,
diff --git a/zerver/lib/message.py b/zerver/lib/message.py
index 6cf785373aa..97558dd1950 100644
--- a/zerver/lib/message.py
+++ b/zerver/lib/message.py
@@ -1308,7 +1308,7 @@ def update_first_visible_message_id(realm: Realm) -> None:
def get_last_message_id() -> int:
# We generally use this function to populate RealmAuditLog, and
- # the max id here is actually systemwide, not per-realm. I
+ # the max id here is actually system-wide, not per-realm. I
# assume there's some advantage in not filtering by realm.
last_id = Message.objects.aggregate(Max("id"))["id__max"]
if last_id is None:
diff --git a/zerver/lib/name_restrictions.py b/zerver/lib/name_restrictions.py
index 0bf6ad861e7..404da47c9e2 100644
--- a/zerver/lib/name_restrictions.py
+++ b/zerver/lib/name_restrictions.py
@@ -102,7 +102,7 @@ ZULIP_RESERVED_SUBDOMAINS = {
"open",
"code",
"license",
- # intership programs
+ # internship programs
"intern",
"outreachy",
"gsoc",
diff --git a/zerver/lib/narrow.py b/zerver/lib/narrow.py
index 427c751e6eb..82a216bc089 100644
--- a/zerver/lib/narrow.py
+++ b/zerver/lib/narrow.py
@@ -30,7 +30,7 @@ def check_supported_events_narrow_filter(narrow: Iterable[Sequence[str]]) -> Non
def is_spectator_compatible(narrow: Iterable[Dict[str, Any]]) -> bool:
- # This implementation should agree with the similar function in static/js/hash_utl.js.
+ # This implementation should agree with the similar function in static/js/hash_util.js.
for element in narrow:
operator = element["operator"]
if "operand" not in element:
diff --git a/zerver/lib/notes.py b/zerver/lib/notes.py
index ae6885bddab..690bf9b4cce 100644
--- a/zerver/lib/notes.py
+++ b/zerver/lib/notes.py
@@ -21,7 +21,7 @@ class BaseNotes(Generic[_KeyT, _DataT], metaclass=ABCMeta):
longer has other references (avoiding memory leaks).
We still need to be careful to avoid any of the attributes of
- _NoteT having points to the original object, as that can create a
+ _DataT having points to the original object, as that can create a
cyclic reference cycle that the Python garbage collect may not
handle correctly.
"""
diff --git a/zerver/lib/presence.py b/zerver/lib/presence.py
index cb907bf2d7a..e0f8f9ab7fc 100644
--- a/zerver/lib/presence.py
+++ b/zerver/lib/presence.py
@@ -104,7 +104,7 @@ def get_legacy_user_info(
result = {}
- # The word "aggegrated" here is possibly misleading.
+ # The word "aggregated" here is possibly misleading.
# It's really just the most recent client's info.
result["aggregated"] = dict(
client=most_recent_info["client"],
diff --git a/zerver/lib/queue.py b/zerver/lib/queue.py
index 9bc70922df8..6c58a813c73 100644
--- a/zerver/lib/queue.py
+++ b/zerver/lib/queue.py
@@ -24,7 +24,7 @@ ChannelT = TypeVar("ChannelT", Channel, BlockingChannel)
Consumer = Callable[[ChannelT, Basic.Deliver, pika.BasicProperties, bytes], None]
# This simple queuing library doesn't expose much of the power of
-# rabbitmq/pika's queuing system; its purpose is to just provide an
+# RabbitMQ/Pika's queuing system; its purpose is to just provide an
# interface for external files to put things into queues and take them
# out from bots without having to import pika code all over our codebase.
class QueueClient(Generic[ChannelT], metaclass=ABCMeta):
diff --git a/zerver/lib/request.py b/zerver/lib/request.py
index 4c9a3231007..b91fc47a1aa 100644
--- a/zerver/lib/request.py
+++ b/zerver/lib/request.py
@@ -41,7 +41,7 @@ class RequestNotes(BaseNotes[HttpRequest, "RequestNotes"]):
details on how it works.
Note that most Optional fields will be definitely not None once
- middlware has run. In the future, we may want to express that in
+ middleware has run. In the future, we may want to express that in
the types by having different types EarlyRequestNotes and
post-middleware RequestNotes types, but for now we have a lot
of `assert request_notes.foo is not None` when accessing them.
diff --git a/zerver/lib/rest.py b/zerver/lib/rest.py
index d14b2e491f6..a279ad5128d 100644
--- a/zerver/lib/rest.py
+++ b/zerver/lib/rest.py
@@ -109,7 +109,7 @@ def rest_dispatch(request: HttpRequest, **kwargs: Any) -> HttpResponse:
# we can skip all of that.
#
# Security implications of this portion of the code are minimal,
- # as we should worst-case fail closed if we miscategorise a request.
+ # as we should worst-case fail closed if we miscategorize a request.
# for some special views (e.g. serving a file that has been
# uploaded), we support using the same URL for web and API clients.
diff --git a/zerver/lib/server_initialization.py b/zerver/lib/server_initialization.py
index 5a36fe25b7f..93c33e9b0f3 100644
--- a/zerver/lib/server_initialization.py
+++ b/zerver/lib/server_initialization.py
@@ -28,7 +28,7 @@ def create_internal_realm() -> None:
# Create some client objects for common requests. Not required;
# just ensures these get low IDs in production, and in development
- # avoids an extra database write for the first HTTP requset in
+ # avoids an extra database write for the first HTTP request in
# most tests.
get_client("website")
get_client("ZulipMobile")
diff --git a/zerver/lib/storage.py b/zerver/lib/storage.py
index 132fd62789d..67f3867a8c1 100644
--- a/zerver/lib/storage.py
+++ b/zerver/lib/storage.py
@@ -38,7 +38,7 @@ class IgnoreBundlesManifestStaticFilesStorage(ManifestStaticFilesStorage):
# Similarly, don't hash-rename image files; we only serve
# the original file paths (not the hashed file paths), and
# so the only effect of hash-renaming these is to increase
- # the size of release tarballs with duplicate copies of thesex.
+ # the size of release tarballs with duplicate copies of these.
#
# One could imagine a future world in which we instead
# used the hashed paths for these; in that case, though,
diff --git a/zerver/lib/stream_topic.py b/zerver/lib/stream_topic.py
index ee0dc935f4e..8de0a25a0d0 100644
--- a/zerver/lib/stream_topic.py
+++ b/zerver/lib/stream_topic.py
@@ -7,7 +7,7 @@ class StreamTopicTarget:
"""
This class is designed to help us move to a
StreamTopic table or something similar. It isolates
- places where we are are still using `topic_name` as
+ places where we are still using `topic_name` as
a key into tables.
"""
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py
index a4ff5485ad6..b1bcd0140f0 100644
--- a/zerver/lib/test_classes.py
+++ b/zerver/lib/test_classes.py
@@ -205,7 +205,7 @@ Output:
The linter will prevent direct calls to self.client.foo, so the wrapper
functions have to fake out the linter by using a local variable called
- django_client to fool the regext.
+ django_client to fool the regex.
"""
DEFAULT_SUBDOMAIN = "zulip"
TOKENIZED_NOREPLY_REGEX = settings.TOKENIZED_NOREPLY_EMAIL_ADDRESS.format(token="[a-z0-9_]{24}")
@@ -1485,7 +1485,7 @@ Output:
"""
DB tables that refer to RealmEmoji use int(emoji_code) as the
foreign key. Those tables tend to de-normalize emoji_name due
- to our inherintance-based setup. This helper makes sure those
+ to our inheritance-based setup. This helper makes sure those
invariants are intact, which is particularly tricky during
the import/export process (or during conversions from things
like Slack/RocketChat/MatterMost/etc.).
diff --git a/zerver/lib/url_preview/preview.py b/zerver/lib/url_preview/preview.py
index 8ac83c0bdca..a8f2d36f07a 100644
--- a/zerver/lib/url_preview/preview.py
+++ b/zerver/lib/url_preview/preview.py
@@ -15,7 +15,7 @@ from zerver.lib.url_preview.oembed import get_oembed_data
from zerver.lib.url_preview.parsers import GenericParser, OpenGraphParser
# FIXME: Should we use a database cache or a memcached in production? What if
-# opengraph data is changed for a site?
+# OpenGraph data is changed for a site?
# Use an in-memory cache for development, to make it easy to develop this code
CACHE_NAME = "database" if not settings.DEVELOPMENT else "in-memory"
# Based on django.core.validators.URLValidator, with ftp support removed.
@@ -95,7 +95,7 @@ def get_link_embed_data(
return None
# We are using two different mechanisms to get the embed data
- # 1. Use OEmbed data, if found, for photo and video "type" sites
+ # 1. Use oEmbed data, if found, for photo and video "type" sites
# 2. Otherwise, use a combination of Open Graph tags and Meta tags
data = get_oembed_data(url, maxwidth=maxwidth, maxheight=maxheight) or {}
if data.get("oembed"):
diff --git a/zerver/lib/users.py b/zerver/lib/users.py
index b729b479e12..b9892124bfd 100644
--- a/zerver/lib/users.py
+++ b/zerver/lib/users.py
@@ -477,7 +477,7 @@ def get_cross_realm_dicts() -> List[Dict[str, Any]]:
if user.realm.string_id != settings.SYSTEM_BOT_REALM: # nocoverage
continue
user_row = user_profile_to_user_row(user)
- # Because we want to avoid clients becing exposed to the
+ # Because we want to avoid clients being exposed to the
# implementation detail that these bots are self-owned, we
# just set bot_owner_id=None.
user_row["bot_owner_id"] = None
diff --git a/zerver/management/commands/convert_slack_data.py b/zerver/management/commands/convert_slack_data.py
index f91c59bf698..21e504c11d8 100644
--- a/zerver/management/commands/convert_slack_data.py
+++ b/zerver/management/commands/convert_slack_data.py
@@ -21,7 +21,7 @@ class Command(BaseCommand):
)
parser.add_argument(
- "--token", metavar="<slack_token>", help="Slack legacy token of the organsation"
+ "--token", metavar="<slack_token>", help="Slack legacy token of the organization"
)
parser.add_argument(
diff --git a/zerver/management/commands/email_mirror.py b/zerver/management/commands/email_mirror.py
index 30b68711d5c..0e47a52993b 100644
--- a/zerver/management/commands/email_mirror.py
+++ b/zerver/management/commands/email_mirror.py
@@ -9,7 +9,7 @@ EMAIL_GATEWAY_PATTERN delivers emails directly to Zulip, and this, a
cron job that connects to an IMAP inbox (which receives the emails)
periodically.
-Run this in a cronjob every N minutes if you have configured Zulip to
+Run this in a cron job every N minutes if you have configured Zulip to
poll an external IMAP mailbox for messages. The script will then
connect to your IMAP server and batch-process all messages.
diff --git a/zerver/management/commands/export.py b/zerver/management/commands/export.py
index 9c7f2e48646..4f12c9444e6 100644
--- a/zerver/management/commands/export.py
+++ b/zerver/management/commands/export.py
@@ -31,7 +31,7 @@ class Command(ZulipBaseCommand):
* Mobile tokens for APNS/GCM (users will need to reconnect their mobile devices)
* ScheduledEmail (not relevant on a new server)
* RemoteZulipServer (unlikely to be migrated)
- * third_party_api_results cache (this means rerending all old
+ * third_party_api_results cache (this means rerendering all old
messages could be expensive)
Things that will break as a result of the export:
diff --git a/zerver/management/commands/sync_ldap_user_data.py b/zerver/management/commands/sync_ldap_user_data.py
index c93a7742873..1227067d3cb 100644
--- a/zerver/management/commands/sync_ldap_user_data.py
+++ b/zerver/management/commands/sync_ldap_user_data.py
@@ -14,7 +14,7 @@ from zproject.backends import ZulipLDAPException, sync_user_from_ldap
logger = logging.getLogger("zulip.sync_ldap_user_data")
log_to_file(logger, settings.LDAP_SYNC_LOG_PATH)
-# Run this on a cronjob to pick up on name changes.
+# Run this on a cron job to pick up on name changes.
@transaction.atomic
def sync_ldap_user_data(
user_profiles: List[UserProfile], deactivation_protection: bool = True
diff --git a/zerver/middleware.py b/zerver/middleware.py
index 7c378bba28d..ac493382231 100644
--- a/zerver/middleware.py
+++ b/zerver/middleware.py
@@ -171,7 +171,7 @@ def write_log_line(
statsd_path = "webreq"
else:
statsd_path = "webreq.{}".format(path[1:].replace("/", "."))
- # Remove non-ascii chars from path (there should be none, if there are it's
+ # Remove non-ascii chars from path (there should be none; if there are, it's
# because someone manually entered a nonexistent path), as UTF-8 chars make
# statsd sad when it sends the key name over the socket
statsd_path = statsd_path.encode("ascii", errors="ignore").decode("ascii")
diff --git a/zerver/migrations/0257_fix_has_link_attribute.py b/zerver/migrations/0257_fix_has_link_attribute.py
index a494f707134..2fa4b1874be 100644
--- a/zerver/migrations/0257_fix_has_link_attribute.py
+++ b/zerver/migrations/0257_fix_has_link_attribute.py
@@ -26,7 +26,7 @@ def process_batch(apps: StateApps, id_start: int, id_end: int, last_id: int) ->
print(f"Processed {message.id} / {last_id}")
# Because we maintain the Attachment table, this should be as
- # simple as just just checking if there's any Attachment
+ # simple as just checking if there's any Attachment
# objects associated with this message.
has_attachment = message.attachment_set.exists()
diff --git a/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py b/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py
index 635331c4348..12b5fc88eb5 100644
--- a/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py
+++ b/zerver/migrations/0260_missed_message_addresses_from_redis_to_db.py
@@ -60,7 +60,7 @@ def move_missed_message_addresses_to_database(
# Tie to the latest PM from the sender to this user;
# we expect at least one existed because it generated
# this missed-message email, so we can skip the
- # normally required additioanl check for messages we
+ # normally required additional check for messages we
# ourselves sent to the target user.
message = Message.objects.filter(
recipient_id=user_profile.recipient_id, sender_id=recipient.type_id
diff --git a/zerver/migrations/0295_case_insensitive_email_indexes.py b/zerver/migrations/0295_case_insensitive_email_indexes.py
index f316c02af34..96111e764bf 100644
--- a/zerver/migrations/0295_case_insensitive_email_indexes.py
+++ b/zerver/migrations/0295_case_insensitive_email_indexes.py
@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
# new case-insensitive index.
#
# Further, when we created the delivery_email field, we
- # neglected to create an unique index on (realm_id,
+ # neglected to create a unique index on (realm_id,
# delivery_email), which meant race conditions or logic bugs
# could allow duplicate user accounts being created in
# organizations with EMAIL_ADDRESS_VISIBILITY_ADMINS. We
diff --git a/zerver/models.py b/zerver/models.py
index 162df0f6b5e..1e6c090f920 100644
--- a/zerver/models.py
+++ b/zerver/models.py
@@ -4215,7 +4215,7 @@ class Service(models.Model):
id: int = models.AutoField(auto_created=True, primary_key=True, verbose_name="ID")
name: str = models.CharField(max_length=UserProfile.MAX_NAME_LENGTH)
# Bot user corresponding to the Service. The bot_type of this user
- # deterines the type of service. If non-bot services are added later,
+ # determines the type of service. If non-bot services are added later,
# user_profile can also represent the owner of the Service.
user_profile: UserProfile = models.ForeignKey(UserProfile, on_delete=CASCADE)
base_url: str = models.TextField()
diff --git a/zerver/openapi/openapi.py b/zerver/openapi/openapi.py
index a217b3ac726..54048a19159 100644
--- a/zerver/openapi/openapi.py
+++ b/zerver/openapi/openapi.py
@@ -504,7 +504,7 @@ def validate_schema(schema: Dict[str, Any]) -> None:
elif schema["type"] == "object":
if "additionalProperties" not in schema:
raise SchemaError(
- "additionalProperties needs to be defined for objects to make"
+ "additionalProperties needs to be defined for objects to make "
+ "sure they have no additional properties left to be documented."
)
for property_schema in schema.get("properties", {}).values():
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 2b81dc081ba..5b374086ab8 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -48,7 +48,7 @@ paths:
This API endpoint is used by clients such as the Zulip mobile and
terminal apps to implement password-based authentication. Given the
user's Zulip login credentials, it returns a Zulip API key that the client
- can use to make requests requests as the user.
+ can use to make requests as the user.
This endpoint is only useful for Zulip servers/organizations with
EmailAuthBackend or LDAPAuthBackend enabled.
@@ -243,7 +243,7 @@ paths:
}
- type: object
description: |
- Event sent to clients that that have requested the
+ Event sent to clients that have requested the
`update_display_settings` event type and did not include
`user_settings_object` in their `client_capabilities` when
registering the event queue.
@@ -1366,7 +1366,7 @@ paths:
- type: object
additionalProperties: false
description: |
- Event sent sent to a user's clients when details of a file that user
+ Event sent to a user's clients when details of a file that user
uploaded are changed. Most updates will be changes in the list of
messages that reference the uploaded file.
properties:
@@ -3726,7 +3726,7 @@ paths:
Indicates whether users are
[allowed to change](/help/restrict-name-and-email-changes) their name
via the Zulip UI in this organization. Typically disabled
- in organizations syncing this this type of account information
+ in organizations syncing this type of account information from
an external user database like LDAP.
night_logo_source:
type: string
@@ -3818,7 +3818,7 @@ paths:
- 4 => Only stream and organization administrators can use wildcard mentions in large streams.
- 5 => Only organization administrators can use wildcard mentions in large streams.
- 6 => Nobody can use wildcard mentions in large streams.
- - 7 => Only organization adminstartors and moderators can use wildcard mentions in large streams.
+ - 7 => Only organization administrators and moderators can use wildcard mentions in large streams.
All users will receive a warning/reminder when using
mentions in large streams, even when permitted to do so.
@@ -6707,7 +6707,7 @@ paths:
- name: announce
in: query
description: |
- If one of the streams specified did not exist previously and is thus craeted
+ If one of the streams specified did not exist previously and is thus created
by this call, this determines whether [notification bot](/help/configure-notification-bot)
will send an announcement about the new stream's creation.
schema:
@@ -6802,7 +6802,7 @@ paths:
summary: Update subscriptions
tags: ["streams"]
description: |
- Update which streams you are are subscribed to.
+ Update which streams you are subscribed to.
parameters:
- name: delete
in: query
@@ -7935,7 +7935,7 @@ paths:
**Changes**: Prior to Zulip 5.0 (feature level 111), response
object included the `subscription_data` in the the
- request. The endpoint now returns the more ergonimic
+ request. The endpoint now returns the more ergonomic
`ignored_parameters_unsupported` field instead.
parameters:
- name: subscription_data
@@ -10487,7 +10487,7 @@ paths:
- 4 => Only stream and organization administrators can use wildcard mentions in large streams.
- 5 => Only organization administrators can use wildcard mentions in large streams.
- 6 => Nobody can use wildcard mentions in large streams.
- - 7 => Only organization adminstartors and moderators can use wildcard mentions in large streams.
+ - 7 => Only organization administrators and moderators can use wildcard mentions in large streams.
All users will receive a warning/reminder when using
mentions in large streams, even when permitted to do so.
@@ -10623,7 +10623,7 @@ paths:
Indicates whether users are
[allowed to change](/help/restrict-name-and-email-changes) their name
via the Zulip UI in this organization. Typically disabled
- in organizations syncing this this type of account information
+ in organizations syncing this type of account information from
an external user database like LDAP.
realm_avatar_changes_disabled:
type: boolean
@@ -10633,7 +10633,7 @@ paths:
Indicates whether users are
[allowed to change](/help/restrict-name-and-email-changes) their avatar
via the Zulip UI in this organization. Typically disabled
- in organizations syncing this this type of account information
+ in organizations syncing this type of account information from
an external user database like LDAP.
realm_emails_restricted_to_domains:
type: boolean
@@ -13452,7 +13452,7 @@ paths:
summary: Outgoing webhooks
tags: ["webhooks"]
description: |
- Outgoing webhooks allows to build or set up Zulip integrations which are
+ Outgoing webhooks allow you to build or set up Zulip integrations which are
notified when certain types of messages are sent in Zulip.
responses:
"200":
@@ -15589,7 +15589,7 @@ components:
Unicode codepoints and human-readable names, sending the
`emoji_code` in the data for the original reaction allows the
Zulip server to correctly interpret your upvote as an upvote
- rather than a reaction with a "diffenent" emoji.
+ rather than a reaction with a "different" emoji.
schema:
type: string
example: "1f419"
diff --git a/zerver/tests/fixtures/markdown_test_cases.json b/zerver/tests/fixtures/markdown_test_cases.json
index ee43c3bf5aa..da66f2018bc 100644
--- a/zerver/tests/fixtures/markdown_test_cases.json
+++ b/zerver/tests/fixtures/markdown_test_cases.json
@@ -687,7 +687,7 @@
"expected_output": "<p>:skin-tone-2: :skin-tone-3:</p>"
},
{
- "name": "fried_egg_emoji_nonexistant",
+ "name": "fried_egg_emoji_nonexistent",
"input": "new :fried_egg: emoji is banned for now.",
"expected_output": "<p>new :fried_egg: emoji is banned for now.</p>"
},
diff --git a/zerver/tests/test_auth_backends.py b/zerver/tests/test_auth_backends.py
index 9c3c6417990..1d7cc788054 100644
--- a/zerver/tests/test_auth_backends.py
+++ b/zerver/tests/test_auth_backends.py
@@ -305,7 +305,7 @@ class AuthBackendTest(ZulipTestCase):
user_profile.set_password(password)
user_profile.save()
- # First, verify authentication works with the a nonempty
+ # First, verify authentication works with a nonempty
# password so we know we've set up the test correctly.
self.assertIsNotNone(
EmailAuthBackend().authenticate(
@@ -959,7 +959,7 @@ class SocialAuthBase(DesktopFlowTestingLib, ZulipTestCase):
user_agent: Optional[str] = None,
**extra_data: Any,
) -> HttpResponse:
- """Main entrypoint for all social authentication tests.
+ """Main entry point for all social authentication tests.
* account_data_dict: Dictionary containing the name/email data
that should be returned by the social auth backend.
@@ -3229,7 +3229,7 @@ class AppleAuthBackendNativeFlowTest(AppleAuthMixin, SocialAuthBase):
def test_social_auth_desktop_success(self) -> None:
"""
The desktop app doesn't use the native flow currently and the desktop app flow in its
- current form happens in the browser, thus only the webflow is viable there.
+ current form happens in the browser, thus only the web flow is viable there.
"""
pass
@@ -3489,7 +3489,7 @@ class GitHubAuthBackendTest(SocialAuthBase):
# "partial" state of the python-social-auth pipeline).
#
# TODO: Generalize this testing code for use with other
- # authentication backends when a new authentacation backend
+ # authentication backends when a new authentication backend
# that requires "choose email" screen;
self.assert_in_success_response(["Select account"], result)
# Verify that all the emails returned by GitHub auth
@@ -3945,7 +3945,7 @@ class GitHubAuthBackendTest(SocialAuthBase):
def test_github_unverified_email_with_existing_account(self) -> None:
# check if a user is denied to log in if the user manages to
# send an unverified email that has an existing account in
- # organisation through `email` GET parameter.
+ # organization through `email` GET parameter.
subdomain = "zulip"
realm = get_realm(subdomain)
account_data_dict = dict(email="[email protected]", name=self.name)
@@ -6438,7 +6438,7 @@ class TestZulipLDAPUserPopulator(ZulipLDAPTestCase):
with self.settings(
AUTH_LDAP_USER_ATTR_MAP={
"full_name": "cn",
- "custom_profile_field__birthday": "nonExistantAttr",
+ "custom_profile_field__birthday": "nonExistentAttr",
}
), self.assertLogs("django_auth_ldap", "WARNING") as warn_log:
self.perform_ldap_sync(self.example_user("hamlet"))
@@ -6450,7 +6450,7 @@ class TestZulipLDAPUserPopulator(ZulipLDAPTestCase):
self.assertEqual(
warn_log.output,
[
- "WARNING:django_auth_ldap:uid=hamlet,ou=users,dc=zulip,dc=com does not have a value for the attribute nonExistantAttr"
+ "WARNING:django_auth_ldap:uid=hamlet,ou=users,dc=zulip,dc=com does not have a value for the attribute nonExistentAttr"
],
)
@@ -6563,7 +6563,7 @@ class TestMaybeSendToRegistration(ZulipTestCase):
request.user = None
# Creating a mock Django form in order to keep the test simple.
- # This form will be returned by the create_hompage_form function
+ # This form will be returned by the create_homepage_form function
# and will always be valid so that the code that we want to test
# actually runs.
class Form:
@@ -6593,7 +6593,7 @@ class TestMaybeSendToRegistration(ZulipTestCase):
request.user = None
# Creating a mock Django form in order to keep the test simple.
- # This form will be returned by the create_hompage_form function
+ # This form will be returned by the create_homepage_form function
# and will always be valid so that the code that we want to test
# actually runs.
class Form:
diff --git a/zerver/tests/test_bots.py b/zerver/tests/test_bots.py
index ac2e3bcd597..3cc78f86749 100644
--- a/zerver/tests/test_bots.py
+++ b/zerver/tests/test_bots.py
@@ -75,7 +75,7 @@ class BotTest(ZulipTestCase, UploadSerializeMixin):
self.assertTrue(UserProfile.objects.filter(email="[email protected]").exists())
# The other cases are hard to test directly, since we don't allow creating bots from
# the wrong subdomain, and because 'testserver.example.com' is not a valid domain for the bot's email.
- # So we just test the Raelm.get_bot_domain function.
+ # So we just test the Realm.get_bot_domain function.
realm = get_realm("zulip")
self.assertEqual(realm.get_bot_domain(), "zulip.testserver")
diff --git a/zerver/tests/test_digest.py b/zerver/tests/test_digest.py
index 8abaf327ba5..49a53ea3f7b 100644
--- a/zerver/tests/test_digest.py
+++ b/zerver/tests/test_digest.py
@@ -309,7 +309,7 @@ class TestDigestEmailMessages(ZulipTestCase):
realm = get_realm("zulip")
users = self.active_human_users(realm)
- # Check that all users without an a UserActivityInterval entry are considered
+ # Check that all users without a UserActivityInterval entry are considered
# inactive users and get enqueued.
with mock.patch("zerver.worker.queue_processors.bulk_handle_digest_email") as queue_mock:
_enqueue_emails_for_realm(realm, cutoff)
diff --git a/zerver/tests/test_drafts.py b/zerver/tests/test_drafts.py
index 483d216de93..34dc22ad1c5 100644
--- a/zerver/tests/test_drafts.py
+++ b/zerver/tests/test_drafts.py
@@ -349,7 +349,7 @@ class DraftEditTests(ZulipTestCase):
new_draft_dict.pop("id")
self.assertEqual(new_draft_dict, draft_dict)
- def test_edit_non_existant_draft(self) -> None:
+ def test_edit_non_existent_draft(self) -> None:
hamlet = self.example_user("hamlet")
initial_count = Draft.objects.count()
@@ -447,7 +447,7 @@ class DraftDeleteTests(ZulipTestCase):
# Now make sure that the there are no more drafts.
self.assertEqual(Draft.objects.count() - initial_count, 0)
- def test_delete_non_existant_draft(self) -> None:
+ def test_delete_non_existent_draft(self) -> None:
hamlet = self.example_user("hamlet")
# Make sure that no draft exists in the first place.
diff --git a/zerver/tests/test_event_queue.py b/zerver/tests/test_event_queue.py
index d2a0c8ac6d3..db43d5fc2c3 100644
--- a/zerver/tests/test_event_queue.py
+++ b/zerver/tests/test_event_queue.py
@@ -885,7 +885,7 @@ class EventQueueTest(ZulipTestCase):
def test_collapse_event(self) -> None:
"""
- This mostly focues on the internals of
+ This mostly focuses on the internals of
how we store "virtual_events" that we
can collapse if subsequent events are
of the same form. See the code in
diff --git a/zerver/tests/test_event_system.py b/zerver/tests/test_event_system.py
index 871aaa50dc8..dc9c1abb3c2 100644
--- a/zerver/tests/test_event_system.py
+++ b/zerver/tests/test_event_system.py
@@ -1154,7 +1154,7 @@ class TestGetRawUserDataSystemBotRealm(ZulipTestCase):
class TestUserPresenceUpdatesDisabled(ZulipTestCase):
- def test_presence_events_diabled_on_larger_realm(self) -> None:
+ def test_presence_events_disabled_on_larger_realm(self) -> None:
# First check that normally the mocked function gets called.
events: List[Mapping[str, Any]] = []
with self.tornado_redirected_to_list(events, expected_num_events=1):
diff --git a/zerver/tests/test_integrations_dev_panel.py b/zerver/tests/test_integrations_dev_panel.py
index 2aceb7eaef9..a1d859be82e 100644
--- a/zerver/tests/test_integrations_dev_panel.py
+++ b/zerver/tests/test_integrations_dev_panel.py
@@ -120,12 +120,12 @@ class TestIntegrationsDevPanel(ZulipTestCase):
self.assertEqual(Stream.objects.get(id=latest_msg.recipient.type_id).name, "Denmark")
self.assertEqual(latest_msg.topic_name(), "WordPress notifications")
- def test_get_fixtures_for_nonexistant_integration(self) -> None:
- target_url = "/devtools/integrations/somerandomnonexistantintegration/fixtures"
+ def test_get_fixtures_for_nonexistent_integration(self) -> None:
+ target_url = "/devtools/integrations/somerandomnonexistentintegration/fixtures"
response = self.client_get(target_url)
expected_response = {
"code": "BAD_REQUEST",
- "msg": '"somerandomnonexistantintegration" is not a valid webhook integration.',
+ "msg": '"somerandomnonexistentintegration" is not a valid webhook integration.',
"result": "error",
}
self.assertEqual(response.status_code, 404)
diff --git a/zerver/tests/test_markdown.py b/zerver/tests/test_markdown.py
index 58266c52914..a0e3d042d3a 100644
--- a/zerver/tests/test_markdown.py
+++ b/zerver/tests/test_markdown.py
@@ -1752,7 +1752,7 @@ class MarkdownTest(ZulipTestCase):
expected_user_ids: Set[int] = set()
self.assertEqual(rendering_result.user_ids_with_alert_words, expected_user_ids)
- def test_alert_words_retuns_user_ids_with_alert_words_with_huge_alert_words(self) -> None:
+ def test_alert_words_returns_user_ids_with_alert_words_with_huge_alert_words(self) -> None:
alert_words_for_users: Dict[str, List[str]] = {
"hamlet": ["issue124"],
@@ -1778,7 +1778,7 @@ class MarkdownTest(ZulipTestCase):
The second line, for x in range(10), determines how many values will be printed (when you use
range(x), the number that you use in place of x will be the amount of values that you'll have
printed. if you want 20 values, use range(20). use range(5) if you only want 5 values returned,
- etc.). I was talking abou the issue124 on github. Then the third line: print random.randint(1,101) will automatically select a random integer
+ etc.). I was talking about the issue124 on github. Then the third line: print random.randint(1,101) will automatically select a random integer
between 1 and 100 for you. The process is fairly simple
"""
rendering_result = render(msg, content)
@@ -1992,7 +1992,7 @@ class MarkdownTest(ZulipTestCase):
msg = Message(sender=sender_user_profile, sending_client=get_client("test"))
# Even though King Hamlet will be present in mention data as
- # it was was fetched for first mention but second mention is
+ # it was fetched for first mention but second mention is
# incorrect(as it uses hamlet's id) so it should not be able
# to use that data for creating a valid mention.
diff --git a/zerver/tests/test_message_edit_notifications.py b/zerver/tests/test_message_edit_notifications.py
index 0c30e0d8939..54eb8644701 100644
--- a/zerver/tests/test_message_edit_notifications.py
+++ b/zerver/tests/test_message_edit_notifications.py
@@ -236,7 +236,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
self._turn_on_stream_push_for_cordelia()
# Even though Cordelia configured this stream for pushes,
- # we short-ciruit the logic, assuming the original message
+ # we short-circuit the logic, assuming the original message
# also did a push.
original_content = "no mention"
updated_content = "nothing special about updated message"
@@ -370,7 +370,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
def test_updates_with_stream_mention_of_sorta_present_user(self) -> None:
cordelia = self.example_user("cordelia")
- # We will simulate that the user still has a an active client,
+ # We will simulate that the user still has an active client,
# but they don't have UserPresence rows, so we will still
# send offline notifications.
original_content = "no mention"
@@ -402,7 +402,7 @@ class EditMessageSideEffectsTest(ZulipTestCase):
cordelia = self.example_user("cordelia")
hamlet = self.example_user("hamlet")
- # We will simulate that the user still has a an active client,
+ # We will simulate that the user still has an active client,
# but they don't have UserPresence rows, so we will still
# send offline notifications.
original_content = "no mention"
diff --git a/zerver/tests/test_message_fetch.py b/zerver/tests/test_message_fetch.py
index 2181d8efd72..db42d85f70b 100644
--- a/zerver/tests/test_message_fetch.py
+++ b/zerver/tests/test_message_fetch.py
@@ -396,7 +396,7 @@ class NarrowBuilderTest(ZulipTestCase):
self._do_add_term_test(term, "WHERE id != %(param_1)s")
def test_add_term_using_group_pm_operator_and_not_the_same_user_as_operand(self) -> None:
- # Test wtihout any such group PM threads existing
+ # Test without any such group PM threads existing
term = dict(operator="group-pm-with", operand=self.othello_email)
self._do_add_term_test(term, "WHERE recipient_id IN (__[POSTCOMPILE_recipient_id_1])")
@@ -1474,7 +1474,7 @@ class GetOldMessagesTest(ZulipTestCase):
),
)
- def test_unauthenticated_get_messages_non_existant_realm(self) -> None:
+ def test_unauthenticated_get_messages_non_existent_realm(self) -> None:
post_params = {
"anchor": 10000000000000000,
"num_before": 5,
@@ -1758,7 +1758,7 @@ class GetOldMessagesTest(ZulipTestCase):
for message in result["messages"]:
self.assertEqual(dr_emails(message["display_recipient"]), emails)
- # check passing id is conistent with passing emails as operand
+ # check passing id is consistent with passing emails as operand
ids = dr_ids(get_display_recipient(personal.recipient))
narrow = [dict(operator="pm-with", operand=ids)]
result = self.get_and_check_messages(dict(narrow=orjson.dumps(narrow).decode()))
@@ -1950,7 +1950,7 @@ class GetOldMessagesTest(ZulipTestCase):
"""
user = self.mit_user("starnine")
self.login_user(user)
- # We need to susbcribe to a stream and then send a message to
+ # We need to subscribe to a stream and then send a message to
# it to ensure that we actually have a stream message in this
# narrow view.
lambda_stream_name = "\u03bb-stream"
@@ -1984,7 +1984,7 @@ class GetOldMessagesTest(ZulipTestCase):
"""
mit_user_profile = self.mit_user("starnine")
self.login_user(mit_user_profile)
- # We need to susbcribe to a stream and then send a message to
+ # We need to subscribe to a stream and then send a message to
# it to ensure that we actually have a stream message in this
# narrow view.
self.subscribe(mit_user_profile, "Scotland")
@@ -2013,7 +2013,7 @@ class GetOldMessagesTest(ZulipTestCase):
"""
mit_user_profile = self.mit_user("starnine")
- # We need to susbcribe to a stream and then send a message to
+ # We need to subscribe to a stream and then send a message to
# it to ensure that we actually have a stream message in this
# narrow view.
self.login_user(mit_user_profile)
diff --git a/zerver/tests/test_message_flags.py b/zerver/tests/test_message_flags.py
index 7170a4e55f7..bf5cf514f5e 100644
--- a/zerver/tests/test_message_flags.py
+++ b/zerver/tests/test_message_flags.py
@@ -866,7 +866,7 @@ class GetUnreadMsgsTest(ZulipTestCase):
# The count here reflects the count of unread messages that we will
# report to users in the bankruptcy dialog, and for now it excludes unread messages
- # from muted treams, but it doesn't exclude unread messages from muted topics yet.
+ # from muted streams, but it doesn't exclude unread messages from muted topics yet.
self.assertEqual(result["count"], 4)
self.assertFalse(result["old_unreads_missing"])
diff --git a/zerver/tests/test_message_topics.py b/zerver/tests/test_message_topics.py
index c834892f89d..4726a76b1c3 100644
--- a/zerver/tests/test_message_topics.py
+++ b/zerver/tests/test_message_topics.py
@@ -176,7 +176,7 @@ class TopicHistoryTest(ZulipTestCase):
def test_get_topics_web_public_stream_web_public_request(self) -> None:
iago = self.example_user("iago")
- stream = self.make_stream("web-public-steram", is_web_public=True)
+ stream = self.make_stream("web-public-stream", is_web_public=True)
self.subscribe(iago, stream.name)
for i in range(3):
@@ -201,9 +201,9 @@ class TopicHistoryTest(ZulipTestCase):
result = self.client_get(endpoint)
self.assert_json_error(result, "Invalid stream id", 400)
- def test_get_topics_non_existant_stream_web_public_request(self) -> None:
- non_existant_stream_id = 10000000000000000000000
- endpoint = f"/json/users/me/{non_existant_stream_id}/topics"
+ def test_get_topics_non_existent_stream_web_public_request(self) -> None:
+ non_existent_stream_id = 10000000000000000000000
+ endpoint = f"/json/users/me/{non_existent_stream_id}/topics"
result = self.client_get(endpoint)
self.assert_json_error(result, "Invalid stream id", 400)
diff --git a/zerver/tests/test_openapi.py b/zerver/tests/test_openapi.py
index ba41299b0fc..183c2e6e820 100644
--- a/zerver/tests/test_openapi.py
+++ b/zerver/tests/test_openapi.py
@@ -162,7 +162,7 @@ class OpenAPIToolsTest(ZulipTestCase):
)
with self.assertRaisesRegex(
SchemaError,
- r"additionalProperties needs to be defined for objects to makesure they have no additional properties left to be documented\.",
+ r"additionalProperties needs to be defined for objects to make sure they have no additional properties left to be documented\.",
):
# Checks for opaque objects
validate_schema(
@@ -286,7 +286,7 @@ so maybe we shouldn't mark it as intentionally undocumented in the URLs.
except KeyError:
return
- def check_for_non_existant_openapi_endpoints(self) -> None:
+ def check_for_non_existent_openapi_endpoints(self) -> None:
"""Here, we check to see if every endpoint documented in the OpenAPI
documentation actually exists in urls.py and thus in actual code.
Note: We define this as a helper called at the end of
@@ -600,7 +600,7 @@ so maybe we shouldn't include it in pending_endpoints.
self.check_argument_types(function, openapi_parameters)
self.checked_endpoints.add(url_pattern)
- self.check_for_non_existant_openapi_endpoints()
+ self.check_for_non_existent_openapi_endpoints()
class TestCurlExampleGeneration(ZulipTestCase):
@@ -767,7 +767,7 @@ class TestCurlExampleGeneration(ZulipTestCase):
]
self.assertEqual(generated_curl_example, expected_curl_example)
- def test_generate_and_render_curl_example_with_nonexistant_endpoints(self) -> None:
+ def test_generate_and_render_curl_example_with_nonexistent_endpoints(self) -> None:
with self.assertRaises(KeyError):
self.curl_example("/mark_this_stream_as_read", "POST")
with self.assertRaises(KeyError):
@@ -946,7 +946,7 @@ class OpenAPIRegexTest(ZulipTestCase):
Calls a few documented and undocumented endpoints and checks whether they
find a match or not.
"""
- # Some of the undocumentd endpoints which are very similar to
+ # Some of the undocumented endpoints which are very similar to
# some of the documented endpoints.
assert find_openapi_endpoint("/users/me/presence") is None
assert find_openapi_endpoint("/users/me/subscriptions/23") is None
@@ -971,7 +971,7 @@ class OpenAPIRequestValidatorTest(ZulipTestCase):
"""
Test to make sure the request validator works properly
The tests cover both cases such as catching valid requests marked
- as invalid and making sure invalid requests are markded properly
+ as invalid and making sure invalid requests are marked properly
"""
# `/users/me/subscriptions` doesn't require any parameters
validate_request("/users/me/subscriptions", "get", {}, {}, False, "200")
diff --git a/zerver/tests/test_push_notifications.py b/zerver/tests/test_push_notifications.py
index 46c6e90719e..822f1412ce4 100644
--- a/zerver/tests/test_push_notifications.py
+++ b/zerver/tests/test_push_notifications.py
@@ -175,7 +175,7 @@ class PushBouncerNotificationTest(BouncerTestCase):
401,
)
- def test_register_remote_push_user_paramas(self) -> None:
+ def test_register_remote_push_user_params(self) -> None:
token = "111222"
user_id = 11
token_kind = PushDeviceToken.GCM
@@ -1115,7 +1115,7 @@ class HandlePushNotificationTest(PushNotificationTest):
mock_send_android.assert_not_called()
def test_deleted_message(self) -> None:
- """Simulates the race where message is deleted before handlingx push notifications"""
+ """Simulates the race where message is deleted before handling push notifications"""
user_profile = self.example_user("hamlet")
message = self.get_message(Recipient.PERSONAL, type_id=1)
UserMessage.objects.create(
diff --git a/zerver/tests/test_queue_worker.py b/zerver/tests/test_queue_worker.py
index 6cf405dacdf..e56899ec21b 100644
--- a/zerver/tests/test_queue_worker.py
+++ b/zerver/tests/test_queue_worker.py
@@ -541,7 +541,7 @@ class WorkerTest(ZulipTestCase):
worker.start()
self.assertEqual(mock_mirror_email.call_count, 3)
- # After some times passes, emails get accepted again:
+ # After some time passes, emails get accepted again:
with patch("time.time", return_value=(start_time + 11.0)):
fake_client.enqueue("email_mirror", data[0])
worker.start()
@@ -817,5 +817,5 @@ class WorkerTest(ZulipTestCase):
}
# Verify that the set of active worker queues equals the set
- # of of subclasses without is_test_queue set.
+ # of subclasses without is_test_queue set.
self.assertEqual(set(get_active_worker_queues()), worker_queue_names - test_queue_names)
diff --git a/zerver/tests/test_reactions.py b/zerver/tests/test_reactions.py
index 582d90c297c..033d56b60fa 100644
--- a/zerver/tests/test_reactions.py
+++ b/zerver/tests/test_reactions.py
@@ -601,7 +601,7 @@ class ReactionEventTest(ZulipTestCase):
huddle_message_id = self.send_huddle_message(
hamlet,
[polonius, iago],
- "hello message to muliple receiver",
+ "hello message to multiple receiver",
)
with self.tornado_redirected_to_list(events, expected_num_events=1):
result = self.api_post(
diff --git a/zerver/tests/test_realm_emoji.py b/zerver/tests/test_realm_emoji.py
index 7b535baf55c..a8f2cb82b8b 100644
--- a/zerver/tests/test_realm_emoji.py
+++ b/zerver/tests/test_realm_emoji.py
@@ -286,7 +286,7 @@ class RealmEmojiTest(ZulipTestCase):
self.assert_json_error(result, "A custom emoji with this name already exists.")
def test_reupload(self) -> None:
- # An user should be able to reupload an emoji with same name.
+ # A user should be able to reupload an emoji with same name.
self.login("iago")
with get_test_image_file("img.png") as fp1:
emoji_data = {"f1": fp1}
diff --git a/zerver/tests/test_report.py b/zerver/tests/test_report.py
index e138fd1f975..69597e257fe 100644
--- a/zerver/tests/test_report.py
+++ b/zerver/tests/test_report.py
@@ -166,7 +166,7 @@ class TestReport(ZulipTestCase):
self.assertEqual(report["more_info"], dict(foo="bar", draft_content="'**xxxxx**'"))
self.assertEqual(report["user_email"], user.delivery_email)
- # Teset with no more_info
+ # Test with no more_info
del params["more_info"]
with mock_queue_publish("zerver.views.report.queue_json_publish") as m, subprocess_mock:
result = self.client_post("/json/report/error", params)
diff --git a/zerver/tests/test_scim.py b/zerver/tests/test_scim.py
index 727f922b9aa..48368d7f805 100644
--- a/zerver/tests/test_scim.py
+++ b/zerver/tests/test_scim.py
@@ -499,7 +499,7 @@ class TestSCIMUser(SCIMTestCase):
hamlet = self.example_user("hamlet")
cordelia = self.example_user("cordelia")
# This payload will attempt to change hamlet's email to cordelia's email.
- # That would would violate email uniqueness of course, so should fail.
+ # That would violate email uniqueness of course, so should fail.
payload = {
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User"],
"id": hamlet.id,
diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py
index 2887531af82..2267fa78b26 100644
--- a/zerver/tests/test_signup.py
+++ b/zerver/tests/test_signup.py
@@ -809,7 +809,7 @@ class LoginTest(ZulipTestCase):
)
self.assert_logged_in_user_id(None)
- def test_login_nonexist_user(self) -> None:
+ def test_login_nonexistent_user(self) -> None:
result = self.login_with_return("[email protected]", "xxx")
self.assertEqual(result.status_code, 200)
self.assert_in_response("Please enter a correct email and password", result)
@@ -2167,7 +2167,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
registration_key = "invalid_confirmation_key"
url = "/accounts/register/"
response = self.client_post(
- url, {"key": registration_key, "from_confirmation": 1, "full_nme": "alice"}
+ url, {"key": registration_key, "from_confirmation": 1, "full_name": "alice"}
)
self.assertEqual(response.status_code, 404)
self.assert_in_response(
@@ -2176,7 +2176,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!"
registration_key = confirmation_link.split("/")[-1]
response = self.client_post(
- url, {"key": registration_key, "from_confirmation": 1, "full_nme": "alice"}
+ url, {"key": registration_key, "from_confirmation": 1, "full_name": "alice"}
)
self.assert_in_success_response(["We just need you to do one last thing."], response)
response = self.submit_reg_form_for_user(email, password, key=registration_key)
diff --git a/zerver/tests/test_slack_importer.py b/zerver/tests/test_slack_importer.py
index 841710888d9..1ff2b72445e 100644
--- a/zerver/tests/test_slack_importer.py
+++ b/zerver/tests/test_slack_importer.py
@@ -392,7 +392,7 @@ class SlackImporter(ZulipTestCase):
"is_bot": False,
"is_mirror_dummy": False,
"profile": {
- "email": "[email protected]",
+ "email": "[email protected]",
"avatar_hash": "hash",
"image_32": "https://secure.gravatar.com/avatar/random5.png",
},
diff --git a/zerver/tests/test_subs.py b/zerver/tests/test_subs.py
index 89f89b57ee5..631ec536840 100644
--- a/zerver/tests/test_subs.py
+++ b/zerver/tests/test_subs.py
@@ -2475,14 +2475,14 @@ class DefaultStreamTest(ZulipTestCase):
new_stream_names = self.get_default_stream_names(realm)
added_stream_names = new_stream_names - orig_stream_names
self.assertEqual(added_stream_names, {"Added stream"})
- # idempotentcy--2nd call to add_default_stream should be a noop
+ # idempotency--2nd call to add_default_stream should be a noop
do_add_default_stream(stream)
self.assertEqual(self.get_default_stream_names(realm), new_stream_names)
# start removing
do_remove_default_stream(stream)
self.assertEqual(self.get_default_stream_names(realm), orig_stream_names)
- # idempotentcy--2nd call to remove_default_stream should be a noop
+ # idempotency--2nd call to remove_default_stream should be a noop
do_remove_default_stream(stream)
self.assertEqual(self.get_default_stream_names(realm), orig_stream_names)
diff --git a/zerver/tests/test_timezone.py b/zerver/tests/test_timezone.py
index e48c8d5346c..75fec98a517 100644
--- a/zerver/tests/test_timezone.py
+++ b/zerver/tests/test_timezone.py
@@ -21,7 +21,7 @@ class TimeZoneTest(ZulipTestCase):
("CST", +28800.0), # China Standard Time
("CST", -18000.0), # Cuba Standard Time
("PST", -28800.0), # Pacific Standard Time
- ("PST", +28800.0), # Philipine Standard Time
+ ("PST", +28800.0), # Philippine Standard Time
("IST", +19800.0), # India Standard Time
("IST", +7200.0), # Israel Standard Time
("IST", +3600.0), # Ireland Standard Time
diff --git a/zerver/tests/test_upload.py b/zerver/tests/test_upload.py
index d62b3010048..a2450964629 100644
--- a/zerver/tests/test_upload.py
+++ b/zerver/tests/test_upload.py
@@ -207,7 +207,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
self.assertEqual(base, uri[: len(base)])
# In the future, local file requests will follow the same style as S3
- # requests; they will be first authenthicated and redirected
+ # requests; they will be first authenticated and redirected
self.assert_streaming_content(self.client_get(uri), b"zulip!")
# check if DB has attachment marked as unclaimed
@@ -319,7 +319,7 @@ class FileUploadTest(UploadSerializeMixin, ZulipTestCase):
self.assert_in_response("File not found.", response)
def test_delete_old_unclaimed_attachments(self) -> None:
- # Upload some files and make them older than a weeek
+ # Upload some files and make them older than a week
self.login("hamlet")
d1 = StringIO("zulip!")
d1.name = "dummy_1.txt"
@@ -1900,11 +1900,11 @@ class S3Test(ZulipTestCase):
@use_s3_backend
def test_message_image_delete_when_file_doesnt_exist(self) -> None:
with self.assertLogs(level="WARNING") as warn_log:
- self.assertEqual(False, delete_message_image("non-existant-file"))
+ self.assertEqual(False, delete_message_image("non-existent-file"))
self.assertEqual(
warn_log.output,
[
- "WARNING:root:non-existant-file does not exist. Its entry in the database will be removed."
+ "WARNING:root:non-existent-file does not exist. Its entry in the database will be removed."
],
)
diff --git a/zerver/tests/test_webhooks_common.py b/zerver/tests/test_webhooks_common.py
index 97940e7c094..94b991ceff7 100644
--- a/zerver/tests/test_webhooks_common.py
+++ b/zerver/tests/test_webhooks_common.py
@@ -110,8 +110,8 @@ class WebhooksCommonTestCase(ZulipTestCase):
headers = get_fixture_http_headers("some_integration", "complex_fixture")
self.assertEqual(headers, {"key": "value"})
- def test_get_fixture_http_headers_for_non_existant_integration(self) -> None:
- headers = get_fixture_http_headers("some_random_nonexistant_integration", "fixture_name")
+ def test_get_fixture_http_headers_for_non_existent_integration(self) -> None:
+ headers = get_fixture_http_headers("some_random_nonexistent_integration", "fixture_name")
self.assertEqual(headers, {})
@patch("zerver.lib.webhooks.common.importlib.import_module")
diff --git a/zerver/tornado/ioloop_logging.py b/zerver/tornado/ioloop_logging.py
index b28e6b91d53..86a3a50c27a 100644
--- a/zerver/tornado/ioloop_logging.py
+++ b/zerver/tornado/ioloop_logging.py
@@ -59,7 +59,7 @@ class InstrumentedPoll:
result = self._underlying.poll(timeout)
t1 = time.time()
- # Log this datapoint and restrict our log to the past minute
+ # Log this data point and restrict our log to the past minute
self._times.append((t0, t1))
while self._times and self._times[0][0] < t1 - 60:
self._times.pop(0)
diff --git a/zerver/views/documentation.py b/zerver/views/documentation.py
index 86afb3dc900..a6a33c642ad 100644
--- a/zerver/views/documentation.py
+++ b/zerver/views/documentation.py
@@ -208,7 +208,7 @@ class MarkdownDirectoryView(ApiURLView):
context["OPEN_GRAPH_TITLE"] = title_base
request_notes = RequestNotes.get_notes(self.request)
request_notes.placeholder_open_graph_description = (
- f"REPLACMENT_OPEN_GRAPH_DESCRIPTION_{int(2**24 * random.random())}"
+ f"REPLACEMENT_OPEN_GRAPH_DESCRIPTION_{int(2**24 * random.random())}"
)
context["OPEN_GRAPH_DESCRIPTION"] = request_notes.placeholder_open_graph_description
diff --git a/zerver/views/registration.py b/zerver/views/registration.py
index 36a8e4c7d75..e0b160980a9 100644
--- a/zerver/views/registration.py
+++ b/zerver/views/registration.py
@@ -382,7 +382,7 @@ def accounts_register(
# But if the realm is using LDAPAuthBackend, we need to verify
# their LDAP password (which will, as a side effect, create
# the user account) here using authenticate.
- # pregeg_user.realm_creation carries the information about whether
+ # prereg_user.realm_creation carries the information about whether
# we're in realm creation mode, and the ldap flow will handle
# that and create the user with the appropriate parameters.
user_profile = authenticate(
diff --git a/zerver/views/users.py b/zerver/views/users.py
index ee1f248123d..166208fb64f 100644
--- a/zerver/views/users.py
+++ b/zerver/views/users.py
@@ -235,7 +235,7 @@ def avatar(
is_email = True
if not maybe_user_profile.is_authenticated:
- # Allow anonynous access to avatars only if spectators are
+ # Allow anonymous access to avatars only if spectators are
# enabled in the organization.
realm = get_valid_realm_from_request(request)
if not realm.allow_web_public_streams_access():
diff --git a/zerver/webhooks/bitbucket3/tests.py b/zerver/webhooks/bitbucket3/tests.py
index e020d1ff135..ac60cd693ca 100644
--- a/zerver/webhooks/bitbucket3/tests.py
+++ b/zerver/webhooks/bitbucket3/tests.py
@@ -149,7 +149,7 @@ class Bitbucket3HookTests(WebhookTestCase):
"pull_request_opened_with_two_reviewers", expected_topic, expected_message
)
- def test_pr_opened_with_mulitple_reviewers(self) -> None:
+ def test_pr_opened_with_multiple_reviewers(self) -> None:
expected_topic = "sandbox / PR #6 sample_file: Add sample_file.txt."
expected_message = """[hypro999](http://139.59.64.214:7990/users/hypro999) opened [PR #6](http://139.59.64.214:7990/projects/SBOX/repos/sandbox/pull-requests/6) from `master` to `master` (assigned to [sougo](http://139.59.64.214:7990/users/sougo), [zura](http://139.59.64.214:7990/users/zura) and [shimura](http://139.59.64.214:7990/users/shimura) for review):\n\n~~~ quote\nAdd a simple text file for further testing purposes.\n~~~"""
self.check_webhook(
diff --git a/zerver/webhooks/jira/view.py b/zerver/webhooks/jira/view.py
index 1d353f13d8b..442936227d4 100644
--- a/zerver/webhooks/jira/view.py
+++ b/zerver/webhooks/jira/view.py
@@ -141,7 +141,7 @@ def get_issue_id(payload: Dict[str, Any]) -> str:
if "issue" not in payload:
# Some ancient version of Jira or one of its extensions posts
# comment_created events without an "issue" element. For
- # these, the best we can do is extract the Jira-intenral
+ # these, the best we can do is extract the Jira-internal
# issue number and use that in the topic.
#
# Users who want better formatting can upgrade Jira.
@@ -154,7 +154,7 @@ def get_issue_title(payload: Dict[str, Any]) -> str:
if "issue" not in payload:
# Some ancient version of Jira or one of its extensions posts
# comment_created events without an "issue" element. For
- # these, the best we can do is extract the Jira-intenral
+ # these, the best we can do is extract the Jira-internal
# issue number and use that in the topic.
#
# Users who want better formatting can upgrade Jira.
diff --git a/zerver/webhooks/pingdom/view.py b/zerver/webhooks/pingdom/view.py
index 288ea060e70..85a9cb37493 100644
--- a/zerver/webhooks/pingdom/view.py
+++ b/zerver/webhooks/pingdom/view.py
@@ -1,4 +1,4 @@
-# Webhooks pfor external integrations.
+# Webhooks for external integrations.
from typing import Any, Dict
from django.http import HttpRequest, HttpResponse
diff --git a/zerver/webhooks/travis/tests.py b/zerver/webhooks/travis/tests.py
index a288408670a..0f62ffa294e 100644
--- a/zerver/webhooks/travis/tests.py
+++ b/zerver/webhooks/travis/tests.py
@@ -72,7 +72,7 @@ Details: [changes](https://github.com/hl7-fhir/fhir-svn/compare/6dccb98bcfd9...6
expect_noop=True,
)
- def test_travis_exlude_push_event_sent(self) -> None:
+ def test_travis_exclude_push_event_sent(self) -> None:
self.url = f'{self.build_webhook_url()}&exclude_events=["push"]&ignore_pull_requests=false'
self.check_webhook(
diff --git a/zerver/webhooks/zendesk/doc.md b/zerver/webhooks/zendesk/doc.md
index c4973af7fb0..ce7a7b26270 100644
--- a/zerver/webhooks/zendesk/doc.md
+++ b/zerver/webhooks/zendesk/doc.md
@@ -44,7 +44,7 @@
**Updated**. In the **Perform these actions** section, select
**Notification: Notify target**, then select **Zulip**.
-1. Next we need need to enter the message body into Message. You can use
+1. Next we need to enter the message body into Message. You can use
Zulip Markdown and the Zendesk placeholders when creating your message.
You can copy this example template:
diff --git a/zilencer/management/commands/populate_db.py b/zilencer/management/commands/populate_db.py
index 37d21decec8..6cd2495d3ad 100644
--- a/zilencer/management/commands/populate_db.py
+++ b/zilencer/management/commands/populate_db.py
@@ -288,7 +288,7 @@ class Command(BaseCommand):
# due to these numbers happening to coincide in such a way that it makes tests
# accidentally pass. By bumping the Recipient.id sequence by a large enough number,
# we can have those ids in a completely different range of values than object ids,
- # eliminatng the possibility of such coincidences.
+ # eliminating the possibility of such coincidences.
cursor.execute("SELECT setval('zerver_recipient_id_seq', 100)")
# If max_topics is not set, we set it proportional to the
@@ -366,7 +366,7 @@ class Command(BaseCommand):
# For testing really large batches:
# Create extra users with semi realistic names to make search
# functions somewhat realistic. We'll still create 1000 users
- # like Extra222 User for some predicability.
+ # like Extra222 User for some predictability.
num_names = options["extra_users"]
num_boring_names = 300
diff --git a/zilencer/models.py b/zilencer/models.py
index 10d3495faed..2c13919d51d 100644
--- a/zilencer/models.py
+++ b/zilencer/models.py
@@ -62,7 +62,7 @@ class RemotePushDeviceToken(AbstractPushDeviceToken):
"""Like PushDeviceToken, but for a device connected to a remote server."""
server: RemoteZulipServer = models.ForeignKey(RemoteZulipServer, on_delete=models.CASCADE)
- # The user id on the remote server for this device device this is
+ # The user id on the remote server for this device
user_id: int = models.BigIntegerField(db_index=True)
class Meta:
@@ -140,7 +140,7 @@ class RateLimitedRemoteZulipServer(RateLimitedObject):
self, remote_server: RemoteZulipServer, domain: str = "api_by_remote_server"
) -> None:
# Remote servers can only make API requests regarding push notifications
- # which requires ZILENCED_ENABLED and of course can't happen on API endpoints
+ # which requires ZILENCER_ENABLED and of course can't happen on API endpoints
# inside Tornado.
assert not settings.RUNNING_INSIDE_TORNADO
assert settings.ZILENCER_ENABLED
diff --git a/zproject/backends.py b/zproject/backends.py
index 3f62b02b554..089278f4ac0 100644
--- a/zproject/backends.py
+++ b/zproject/backends.py
@@ -2519,7 +2519,7 @@ class SAMLAuthBackend(SocialAuthMixin, SAMLAuth):
and then change the RelayState param to the idp_name, because that's what
SAMLAuth.auth_complete() expects.
- Additionally, this handles incoming LogoutRequests for IdP-initated logout.
+ Additionally, this handles incoming LogoutRequests for IdP-initiated logout.
"""
encoded_saml_request = self.strategy.request_data().get("SAMLRequest")
diff --git a/zproject/default_settings.py b/zproject/default_settings.py
index edc17ea73a2..318bb23c88a 100644
--- a/zproject/default_settings.py
+++ b/zproject/default_settings.py
@@ -404,7 +404,7 @@ CUSTOM_LOGO_URL: Optional[str] = None
# development.
INITIAL_PASSWORD_SALT: Optional[str] = None
-# Settings configuring the special instrumention of the send_event
+# Settings configuring the special instrumentation of the send_event
# code path used in generating API documentation for /events.
LOG_API_EVENT_TYPES = False
diff --git a/zproject/urls.py b/zproject/urls.py
index 47e5c5671c0..9e34c365db9 100644
--- a/zproject/urls.py
+++ b/zproject/urls.py
@@ -358,7 +358,7 @@ v1_api_and_json_patterns = [
"users/me/apns_device_token", POST=add_apns_device_token, DELETE=remove_apns_device_token
),
rest_path("users/me/android_gcm_reg_id", POST=add_android_reg_id, DELETE=remove_android_reg_id),
- # users/*/presnece => zerver.views.presence.
+ # users/*/presence => zerver.views.presence.
rest_path("users/me/presence", POST=update_active_status_backend),
# It's important that this sit after users/me/presence so that
# Django's URL resolution order doesn't break the